Skip to content

Creating adapters by media-types. #1062

@bacarini

Description

@bacarini

I would like to know what is yours thoughts about creating adapters by media-types.
Ex.

GET http://example.com/posts  
render with flatten-json adapter

GET http://example.com/posts  --headers "Content-type: application/vnd.api+json" 
render with json-api adapter

GET http://example.com/posts  --headers "Content-type: application/json" 
render with json adapter

GET http://example.com/posts  --headers "Content-type: application/hal+json" 
render with hal adapter (hypothetically)

GET http://example.com/posts  --headers "Content-type: application/vnd.collection+json" 
render with collection-json adapter (hypothetically)

@akaKuruma and I want to implement that if it is approved.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions