Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Listing TDs gives 405 ERROR - version 10 #39

Open
karaleina opened this issue Apr 8, 2019 · 2 comments
Open

Listing TDs gives 405 ERROR - version 10 #39

karaleina opened this issue Apr 8, 2019 · 2 comments

Comments

@karaleina
Copy link

I created Postman client based on Swagger documentation (api.json file) and tried to list available things (expecting empty list) and I got 405 ERROR.

(I set up version 10 according to this guideline #33)

@6d77
Copy link
Contributor

6d77 commented Apr 9, 2019

Indeed this seems not to be implemented and one of the things, where the Swagger file is definitely not in line with the implementation. A pure GET on /td is not supported.

To list all things, you can use the web interface at / or the query at td-lookup/sem, which however not only returns the names of the things, but all thing descriptions.

@karaleina
Copy link
Author

karaleina commented Apr 9, 2019

Thank you, it is possible to query td-lookup/sem instead. Referring to Swagger documentation, I needed to change header Accept to application/td+json.

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

No branches or pull requests

2 participants