Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sends a simple request to read a response from the remote server.

Get

...

Get a specific intent

Get the list of all intents

To get a list of all the available intents in the current server, use the following API call:

...

Code Block
HTTP/1.1 200 OK
{
    "pageData": [
        {
            "_id": "599ed51e7abba31e4ab1237b",
            "modifiedAt": "2017-08-24T13:31:10.707Z",
            "name": "testemptyslotarray3",
            "createdBy": "5971f9f8328af5c9637958b3",
            "isDeleted": false,
            "createdAt": "2017-08-24T13:31:10.707Z",
            "projectId": [
                "597b029b93077c05214403be"
            ],
            "tags": [],
            "state": {
                "mode": "lock"
            },
            "prompts": {
                "confirm": [
                    "Are you from  {location} location"
                ]
            },
            "samples": [
                "test intent",
                "test complete intent"
            ],
            "slots": [],
            "description": "",
            "__v": 0,
            "projectArrayLength": 1
        }
    ],
    "paging": {
        "pageCount": 1,
        "currentPage": 1,
        "itemCount": 1,
        "resultsCount": 1,
        "hasMore": {
            "hasPrevious": false,
            "hasNext": false
        }
    }
}

Get

...

specific

...

intents

To get a list of specific intents in the current server, use the following API call:

...

...

  1. Copy the JSON code from the link http://<sandboxdomain>:<portno>/apidoc/postman/Environment.json and paste it in a separate file.

  2. Select the cogwheel button on the top right corner of the application to manage environment settings.

  3. Click “Import” from the dialog box.

  4. Select the file. The environment file is loaded to the postman.

  5. Click the file name to edit the environment settings and update your domain and token and click on “Update”.

...

  1. Login to postman

  2. Set the method to “POST” and use the URL https://<domain-name>:<portno>/api/login.

  3. Use the below code in the body of the request and click “Send”. Please change the login credentials as per the instance/domain.

    Code Block
    {
                "username":"example@orbita.com",
                "password":"Password@123"
    }
  4. You will receive a token in the response.

  5. Select the Environment that you created from the Environment dropdown on the top right corner of the page.

...

  1. Open Postman and Select the Import option.

  2. Copy the link http://<sandbox-domain>:<portno>/apidoc/postman/ItemCollection.json and paste it in the “Import From Link” tab in the import dialog box and click “Import”.

...

  1. Open Postman and Select the Import option.

  2. Copy the JSON content in the link http://<sandbox-domain>:<portno>/apidoc/postman/ItemCollection.json and paste it in “Paste Raw Text” tab in the import dialog box and click “Import”.

...