eclipse-agail / agile-core

Source code repository for agile core components
Eclipse Public License 2.0
7 stars 16 forks source link

Faulty endpoint /api/protocols/discovery/* #8

Closed cskiraly closed 8 years ago

cskiraly commented 8 years ago

Split from #7

All /api/protocols/discovery/* don't appear to work. eg GET http://217.77.95.110:8080/api/protocols/discovery 500 (Internal Server Error) // returns internal server error

cskiraly commented 8 years ago

POST and DELETE should work as in https://github.com/Agile-IoT/agile-core/blob/master/test/http/Discover.sh GET is in fact not implemented. We should add DiscoveryStatus to the Protocol, and expose it through the ProtocolManager.

craigmulligan commented 8 years ago

Nice! @cskiraly will you update the api on http://217.77.95.110 when you get a chance?

cskiraly commented 8 years ago

Sorry, I was only able to start it up now. We will work on automating this better in the future.

pi@raspberrypi:~/AGILE/agile-scripts $ curl -X GET http://localhost:8080/api/protocols/discovery [{"parameters":["iot.agile.protocol.BLE","NONE"],"name":"iot.agile.protocol.BLE","status":"NONE"}]

As you can see I'm still getting a strange "parameters" key that I have to investigate, but otherwise it looks fine. You can simply avoid "parameters" for now.