GithubHelp home page GithubHelp logo

Comments (2)

jelhan avatar jelhan commented on June 11, 2024

The quote is about Resource Identifier Objects. Resource identifier objects were required to have type and id already in v1.0:

5.3 Resource Identifier Objects

[...]

A “resource identifier object” MUST contain type and id members.

A resource identifier object is not used for creating a resource. It is used to identify resources. It requires either id or lid in addition to type to identify a resource.

A resource object, which is used to create a resource, is allowed to have neither id nor lid member also in v1.1:

7.2 Resource Objects

[...]

7.2.1 Identification

As noted above, every resource object MUST contain a type member. Every resource object MUST also contain an id member, except when the resource object originates at the client and represents a new resource to be created on the server. If id is omitted due to this exception, a lid member MAY be included to uniquely identify the resource by type locally within the document. The value of the lid member MUST be identical for every representation of the resource in the document, including resource identifier objects.

from json-api.

cmeeren avatar cmeeren commented on June 11, 2024

My bad. Thanks for clarifying!

from json-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.