Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GET /devices in JS Client Library #328

Open
davidraker opened this issue Jul 10, 2020 · 0 comments
Open

Implement GET /devices in JS Client Library #328

davidraker opened this issue Jul 10, 2020 · 0 comments

Comments

@davidraker
Copy link
Owner

Get routes to all devices for all connected platforms.

In the case where a device with the same topic appears on multiple platforms, the value for that topic in the result will be a list of routes where each element is the route to the device topic on on of the platforms where it appears.

Request:

  • Authorization: BEARER <jwt_token>

Response:

  • With valid BEARER token on success: 200 OK
    • Content Type: application/json
    • Body:
      {
          "<topic>": "/platform/:platform/devices/:topic",
          "<topic>": [
                      "/platform/:platform/devices/:topic",
                      "/platform/:platform/devices/:topic",
                     ]
          ...
      }
      
  • With valid BEARER token on failure: 400 Bad Request
    • Content Type: application/json
    • Body:
      {
          "error": "<Error Message>"
      }
      
  • With invalid BEARER token: 401 Unauthorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant