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

Proposed feature: return list of TDs instead of full TD #44

Open
6d77 opened this issue May 28, 2019 · 2 comments
Open

Proposed feature: return list of TDs instead of full TD #44

6d77 opened this issue May 28, 2019 · 2 comments

Comments

@6d77
Copy link
Contributor

6d77 commented May 28, 2019

Currently the search APIs always return the full TD for each result. This could be a lot, especially when performing a full list.

It would be very useful (even for the default Web UI) to have some means to return a list of Things only together with the links to retrieve the full TDs.

@vcharpenay
Copy link
Collaborator

vcharpenay commented May 28, 2019

One of the objectives of the TDir has been to have it implement the IETF Resource Directory spec, which exchanges data in the CoRE Link format. (Since both the latter and the TD spec are in the making, it is hard to keep implementation up-to-date.)

The original idea was to use content negotiation for this feature:

  • if Accept is set to application/json, the full TD documents are returned
  • if it is set to application/link-format, only links are returned (in the CoRE Link format)

Is that satisfactory?

@6d77
Copy link
Contributor Author

6d77 commented May 28, 2019

Would be perfectly fine for me!

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