3

I am using PostMan as a REST client to test this API method Cisco ACL Analysis API. specifically POST /acl/trace or getAClTracksStd (first go to Policy Analysis)

Here is my PostMan HTTP test callenter image description here

Does anyone who is familiar with PostMan understand why I am getting this "Request method 'GET' is not supported" error from the server? I am making a POST HTTP request, not GET.(Selected from Drop down menu) It make more sense for me to get a input invalid parameter error or something.

Just to show that the endpoint url works, heres a HTTP test request that works enter image description here(same link, host->host API -> GET /host/{startIndex}/{recordsToReturn}

committedandroider
  • 8,711
  • 14
  • 71
  • 126

2 Answers2

15

There's two issues that I'm seeing with your REST call. First, the error you're seeing is because the call needs to be preceded by "https://". Second, remove the interface IDs parameter and values. You should get a response with data after making these changes.

Brett Tiller
  • 166
  • 2
  • Thank you! my {{baseUrl}} variable I imported from a Swagger file had the base url set to `//www.myapi...`. Changing it to `https://www.myapi...` fixed the problem! – Benson Mar 20 '23 at 01:33
1

Your json looks erronuous (comma after the destIp) - and the server probably always responds with a default confusing error message in this case. (Postman is very well tested and it sends POST).

Dmitry Sadakov
  • 2,128
  • 3
  • 19
  • 34
  • Thanks added the comma, didn't make a difference. Do you think this is a server side issue then? – committedandroider May 01 '15 at 02:14
  • Yes, the result is from the server; to double-check you can use other network tools (Fiddler.Net, WireShark) or play around with the json to make the result proper. Something with it isn't write. – Dmitry Sadakov May 01 '15 at 02:15