Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Add postman collection, and update IP to localhost (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
David R. Williamson authored Jun 19, 2019
1 parent 7063b37 commit ce8e8e5
Show file tree
Hide file tree
Showing 2 changed files with 670 additions and 0 deletions.
26 changes: 26 additions & 0 deletions rest-api-postman-collection/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Vision AI DevKit Postman Collection

This Postman collection export exists to faciliate changing properties, running commands, and getting information via REST calls supported by the Vision AI Camera.

To set up:

1. Import the provided collection into Postman (version 7.2.2 or higher).
1. Open the **Manage Environments** dialog (gear icon in upper, right-hand corner).
1. **Add** a new environment.
1. Name the environment.
1. Add a variable named hostIp.
1. Add a variable named sessionId.
1. Press the **Add** button to save.

To use:

1. Determine the IP address of the camera.
- Using an SSH connection, type `ifconfig wlan0`.
1. Select the environment you created earlier for this camera using the upper, right-hand corner dropdown box.
1. Select the **Environment quick look** button (eye icon in upper, right-hand corner).
1. Edit the current value of the hostIp variable, and type in the camera IP address obtained in step 1.
1. Open the Login request, and press the Send button.
1. In the response pane, press the Headers tab.
1. Find the **Set-Cookie** header, and copy the text after "session=".
1. Back in the **Environment quick look** dialog, set the current value for the sessionId variable to the value copied.
1. Run any of the other request. If any of the requests get an unauthorized error, re-run the Login request, copy the session Id, and update it in the Environment quick look dialog.
Loading

0 comments on commit ce8e8e5

Please sign in to comment.