Skip to content

POST methods would return an id/location of the created resource #47

@gjimenezUCM

Description

@gjimenezUCM

According to the following RFC:

"...the response SHOULD be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource"

The RFC also specifies that the Location response-header field should include the URI of the new resource created.

I think that this way the API will avoid that two documents/objects would have the same id and it guarantees the idempotence of get, put... services.

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