Skip to content

Future content negotiation #137

@Guts

Description

@Guts

Purpose

Actually, resolve requests are using the application/xml mime-type: it's a feature, not a bug 😉. Let's improve it!
Goal: get a generic behavior to handle basic use cases and allow the end-user to fine tune it.

Different mime-types

  • JSON: application/json
  • GEOJSON: application/geo+json
  • JSON LD: application/ld+json
  • XML GML: application/gml+xml
  • XML RDF: application/rdf+xml

Behavior

Mermaid syntax:

graph TD
    A[Feature instance description] -->|Resolve external| B(Request URI/L)
    B --> C{Content negotiation}
    C --> D[Profile settings]
    D --> C
    C -->|GET| E[application/ld+json]
    C -->|GET| F[application/gml+xml]
    C -->|GET| G[application/rdf+xml]
    C -->|GET| H[application/geo+json]
    E --> I{Response checker}
    F --> I
    G --> I
    H --> I
    I --> |KO| C
    I --> |OK| J{Response processor}
    J --> K([templating/rendering])
Loading

As image:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions