Retrieving event information

James John 4 years ago

Hi
I am trying to get events from the next API:

http://{host}:{port}/api/events/{id}

my device id is 3 and I test many times with different formula as below

http://{host}:{port}/api/events/3    ===> Bad request  NullPointerException (EventResource: 28 < ...)
http://{host}:{port}/api/events/{3}  ===> 404 Not Found  For input string: "{3}" - NumberFormatException (...)
http://{host}:{port}/api/events/id=3 ===> 404 Not Found  For input string: "id=3" - NumberFormatException (...)

How can I solve this?

Anton Tananaev 4 years ago

Can you please provide documentation link where you found this API format.

Anton Tananaev 4 years ago

Actually the first option is correct. The error indicates that event with that id not found.

James John 4 years ago