If you’d like to use Postman to work with Misty’s RESTful API, here’s a quick primer:
- Download the Postman app here
- Open the app and click 'New’ in the upper left corner
- Select ‘Request’
- Enter a name for the request. You can also enter a description, although this is optional.
- Click + Create Collection
- Enter a name for your collection. Click the checkmark to create the collection.
- Select the newly created collection, then click the orange ‘Save to (Collection Name)’ button
- Select the method type for the HTTP request. In this case, change from
- In the Request URL field, enter the endpoint you want to use. In this case it’s
- Below the address bar, select ‘Body’ and click the radio button for ‘raw’
- You can then enter a payload to send with the command. You can find an example payloads to send to your REST API endpoint by using the API Explorer. Use the API Explorer to send the same command to Misty. Then, open the Network tab of Chrome’s Developer Tools, and locate the command that you have just made.
- Locate the Request Payload. Copy this payload and paste it into the Body section of Postman
- Click send and see how Misty reacts!