...
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:
...
See https://www.youtube.com/watch?v=K3s0iT6rWe0 for a video that shows how to get started with Postman.
See also https://<sandbox-domain>:<portno>/apidoc, which shows the complete REST API documentation on the sandbox.
...
Copy the JSON code from the link http://<sandboxdomain>:<portno>/apidoc/postman/Environment.json and paste it in a separate file.
Select the cogwheel button on the top right corner of the application to manage environment settings.
Click “Import” from the dialog box.
Select the file. The environment file is loaded to the postman.
Click the file name to edit the environment settings and update your domain and token and click on “Update”.
...
Login to postman
Set the method to “POST” and use the URL https://<domain-name>:<portno>/api/login.
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" }
You will receive a token in the response.
Select the Environment that you created from the Environment dropdown on the top right corner of the page.
...
Open Postman and Select the Import option.
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”.
...
Open Postman and Select the Import option.
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”.
...