Get only details information related to an event
Description
As a Collect Service, I want to be able to get all types of details from a specific event because I want to provide information to any third party Application and/or to Discovery Service.
Reply to:
GET /events/:event_id/details
GET /events/:event_id/details/:id
With an array of elements in case of the index route or just one, such that:
{
"id": 4210,
"component_uuid": "2245ac22-1db1-43ba-93a3-361164e69441",
"capability": "humidity",
"data_type": "double",
"unit": "none",
"value": "29.421",
"event_id": 1404
}
-
Design the way to handle JSON. -
Implement controller. -
Implement model. -
Implement the specs/tests and make them pass. -
Integrate with resources.