12-02-2015 07:15 AM - edited 03-01-2019 04:26 AM
Dears,
I am trying from Postman to make a request to the /network-device service but cannot get the list of devices as a response. Although I get a HTTP 200, the body response I get is: "
{
"response": [],
"version": "1.0"
}
"
I am using the Headers application/json and X-Auth-Token with a valid token. I can confirm it's valid since the call to /user works just fine.
I am suspecting the reason is a "Scope" parameter I have encountered in the Swagger API, but cannot figure out what that is and what value I should offer.
Help is appreciated.
Thanks,
Bogdan
Solved! Go to Solution.
12-02-2015 07:52 AM
Found it - rather obvious really, network discovery wasn't yet done.
Thanks!
B.
12-02-2015 07:41 AM
Which lab you were using ?
Do you get empty response always ? You may get empty response from GET /host but for the network-device you should get something back.
For the scope in Swagger just enter "all".
Can you share you Postman collection ?
12-02-2015 07:52 AM
Found it - rather obvious really, network discovery wasn't yet done.
Thanks!
B.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide