Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

UseCase02: "what detects what" #12

Open
Mec-iS opened this issue Mar 9, 2015 · 1 comment
Open

UseCase02: "what detects what" #12

Mec-iS opened this issue Mar 9, 2015 · 1 comment

Comments

@Mec-iS
Copy link
Contributor

Mec-iS commented Mar 9, 2015

Establish Sensors API.
Two endpoints:

  • one to GET the list of Physical Entities
  • one to GET the detectors that detects the given Physical Entity

(HATEOS?)

@Mec-iS Mec-iS added this to the New Orleans milestone Mar 9, 2015
@jacoscaz
Copy link
Contributor

/sensors/entities
/sensors/detectors
/sensors/sensors
GET /sensors/entities/<id>
{
  "@id": "...",
  "detectedBy": [
    "http://api.pramantha.net/sensors/sensors/<id1>
    "http://api.pramantha.net/sensors/sensors/<id2>
  ] 
}
GET /sensors/sensors/<id>
{
  "@id": "...",
  "detects": "http://api.pramantha.net/sensors/entities/<id>"
}
GET /sensors/sensors/?entity=<id>
[
  {
    "@id": "...",
    "detects": "http://api.pramantha.net/sensors/entities/<id>"
  }
] 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants