Skip to content

json-api should support creating compound documents (in a single request) #165

@harmv

Description

@harmv

http://jsonapi.org/ describes in detail how to handle compound documents in http responses.

What I'm missing however is creating (POST) compound documents.

example: an ecommerce api to create
Where you have have orders, with (optionally) order items.

I'ld like to have an api to create an order, with its items in one post request.

How should this be done ?
How to handle ids ?

Why this is desirable.

  • it makes clients simpler. (don't have to test for failures)
  • it ensures the orders are created atomically. (with its items, or not at all)

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