Skip to content

Accept header syntax for multiple extensions #1768

@bkoelman

Description

@bkoelman

What is the syntax for a JSON:API Accept HTTP header with multiple extensions? I can't find it in the spec.

Here are some possibilities for a client that wants to use both the https://my-ext1 and https://my-ext2 extensions:

  1. Accept: application/vnd.api+json; ext="https://my-ext1 https://my-ext2"
  2. Accept: application/vnd.api+json; ext="https://my-ext1, https://my-ext2"
  3. Accept: application/vnd.api+json; ext="https://my-ext1; https://my-ext2"
  4. Accept: application/vnd.api+json; ext="https://my-ext1"; "https://my-ext2"
  5. Accept: application/vnd.api+json; ext="https://my-ext1"; ext="https://my-ext2"

Metadata

Metadata

Assignees

No one assigned

    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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy