Skip to content

Instantly share code, notes, and snippets.

View HadrienGardeur's full-sized avatar

Hadrien Gardeur HadrienGardeur

View GitHub Profile
@HadrienGardeur
HadrienGardeur / acquisition.json
Last active December 10, 2015 00:49
Attempt to bring OPDS to JSON. Kinda, sorta HAL based but staying away from the use of _embedded and generic collections for now.
{
"_type": "application/vnd.opds.acquisition+json",
"title": "Best Sellers",
"_links": {
"self": { "href": "/top", "type": "application/vnd.opds.acquisition+json" },
"next": { "href": "/top?page=2", "type": "application/vnd.opds.acquisition+json" },
"search": { "name": "Search in catalog", "href": "/search?q={query}", "type": "application/vnd.opds.acquisition+json", "templated": true },
"namespace": { "name": "opensearch", "href": "http://a9.com/-/spec/opensearch/1.1/" },
"curie": { "name": "opds", "href": "http://opds-spec.org/{rel}", "templated": "true" }