npolar / api.npolar.no

Searchable data storage
https://api.npolar.no
4 stars 0 forks source link

Improve RESTfulness for collection URIs #10

Open cnrdh opened 10 years ago

cnrdh commented 10 years ago

We need a robust mechanism to GET all documents in a collection.

The API co-evolved from ideas similar to those expressed in http://tools.ietf.org/html/draft-kelly-json-hal-06 - with widespread use of hyperlinks between documents. However, at the collection level, we lack links from the Collection URI to bundles of documents (similar to a database view). With such links, RESTful clients could follow a simple set of rules to download entire collections

cnrdh commented 9 years ago

We now have HAL support for ES queries, but not for endpoints.

We could start by redirecting from /endpoint to /endpoint/?q=&format=hal