Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Only return 201 on creation #1141

@rmccue

Description

@rmccue

Updating posts returns a 201 right now, which is incorrect.

The point of a 201 Created is that it requires a Location header as well, to indicate where the new resource lives. This is because you POST /wp/posts, but end up with a new resource at /wp/posts/42 instead.

We need to remove the Location and 201 from updating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions