A POST request MUST result in a 201 (Created) response.
Resources linked to with the "example-widget" link relation type are Widgets. The state of a Widget can be fetched in the "application/example-widget+json" format, and can be updated by PUT to the same link. Widget resources can be deleted. The Example-Count response header field on Widget representations indicates how many Widgets are held by the sender. The "application/example-widget+json" format is a JSON [RFC8259] format representing the state of a Widget. It contains links to related information in the link indicated by the Link header field value with the "example-other-info" link relation type.
Permanent | Temporary | |
---|---|---|
Allows change of the request method from POST to GET | 301 | 302 |
Does not allow change of the request method | 308 | 307 |