api-designer icon indicating copy to clipboard operation
api-designer copied to clipboard

Questions: can use api-designer to send request to my test server to test the API?

Open liangchouzhou opened this issue 9 years ago • 1 comments

just like postman does. does api-designer support that?

i try to POST my request to my service (127.0.0.1:8180) and

  • if i click 'API is behind a firewall', it POST http://127.0.0.1:8180/v1/device,and the response is:
Status
0
Headers
  • if uncheck 'API is behind a firewall', it POST /proxy/http://127.0.0.1:8180/v1/device, and the response is
Status
404

Headers
connection: 
keep-alive
content-length: 
51
content-type: 
text/html; charset=utf-8
date: 
Fri, 09 Sep 2016 14:24:06 GMT
x-content-type-options: 
nosniff
x-powered-by: 
Express
Body

Cannot POST /proxy/http://127.0.0.1:8180/v1/device

1
Cannot POST /proxy/http://127.0.0.1:8180/v1/device

liangchouzhou avatar Sep 09 '16 14:09 liangchouzhou

We will fix the proxy issue for the second case. Not sure why the first case doesn't work though if you see it is posting to the right url. Did you confirm same post is working from postman or terminal?

agustinlg avatar Feb 09 '17 13:02 agustinlg