Skip to content

PATCH-related clarifications #419

@bobholt

Description

@bobholt

For consideration pre-1.0:

Commit 01ce345 changes all references of PUT to PATCH. 👍 for RFC 5789 compliance, but it opens a couple of questions:

  1. There is no longer explicit support for full-replacement updates via the PUT method. Devs familiar with PUT but not PATCH may find it strange that it isn't mentioned at all.
    • Suggestion: specify that servers MAY support the PUT method, but it MUST only be used for full-replacement updates.
  2. RFC 5789 says "If the Request-URI does not point to an existing resource, the server MAY create a new resource, depending on the patch document type (whether it can logically modify a null resource) and permissions, etc.". The json-api spec does not currently offer guidance on this.
    • Suggestion: explicitly say whether or not this is allowable under json-api. If there is no strong guidance deemed necessary, then a best-practice suggestion could be added to Recommendations.

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