JSON:API, HAL and Hydra APIs, tagged and linted
An API that follows a REST hypermedia convention is now recognized as one. REST hypermedia conventions.
- Tagged on import. An OpenAPI, Swagger or RAML document whose bodies use
application/vnd.api+json,application/hal+json,application/prs.hal-forms+jsonorapplication/ld+json(with or without Hydra) is tagged with that convention. The catalog item records its JSON:API resource types, HAL link relations, HAL-FORMS templates and JSON-LD types. - Filter by convention. Bring in → Catalog shows a Convention filter once an item declares one, and
GET /v1/catalog/{tenant}takesconvention. - Conformance checks. The new
rest-conventionslint pack checks each body against its convention: JSON:API documents and resource objects, HALselflinks and linkhrefs, HAL-FORMSdefaulttemplates, JSON-LD@contextand Hydra collection members.
