mirror of
https://github.com/Telecominfraproject/wlan-cloud-services.git
synced 2025-11-01 11:07:47 +00:00
How to use this for Postman testing:
Setting up:
- Download File
- Open Postman, click import, select the file
- Once file appears, ensure {{baseUrl}} is set up to the correct server (default localhost:9091). This can be found by right clicking the collection > Edit > Variables > Initial + Current value
- Set up the token by obtaining it from portal API post > Right click testing collection > Edit > Authorization > Paste token in "Access Token" box and click update.
Running Sanity Tests:
- Hover over collection and click the play arrow
- Click run. This will open the "Collection Runner"
- On Collection Runner, click "Run ..."
- If everything works as it should, you should see 20 passed and 0 failed.
Common Codes:
200 - Successful request 403 - Authorization error (likely expired access token) 500- General API error, usually due to providing an invalid request (IE. Format error, putting a string in an int field)