Swagger API SEND command fails, but other API commands work

General Discussion

Swagger API SEND command fails, but other API commands work

Postby smartin » Thu Jun 11, 2020 1:43 pm

In using the "Try it out!" buttons on the Swagger page, most are successful (GET /alarmdecoder, POST /alarmdecoder/reboot, and GET /alarmdecoder/configuration), but POST /alarmdecoder/send fails, producing the following output:

Curl
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"keys": "11112" [where 1111 represents m alarm code]
}' 'http://alarmdecoder.local:5000/api/v1/alarmdecoder/send?apikey=3...'
Request URL
http://alarmdecoder.local:5000/api/v1/a ... apikey=3...
Response Body
no content
Response Code
0
Response Headers
{
"error": "no response from server"
}

Any suggestions would be appreciated. Thanks!
smartin
newt
newt
 
Posts: 4
Joined: Thu Jun 27, 2019 2:09 pm

Return to General

Who is online

Users browsing this forum: No registered users and 11 guests

cron