Page MenuHomePhabricator

🌶️ Add PATCH statement endpoints to OpenAPI document
Closed, ResolvedPublic

Description

Request:

  • the format of the request is determined by the JSON Patch syntax (see RFC 6902
  • edit metadata (tags, bot, comment) may be added
  • If-Match and If-Unmodified-Since headers

Responses:

  • success case: status code 200 and the patched statement, ETag header with the last revision ID and Last-Modified header
  • error cases:
    • 400 Bad Request with examples for invalid-operation-change-statement-id, invalid-operation-change-property-of-statement and invalid-patch
    • 404 Not Found with examples for item and statement
    • 409 Conflict with examples for cannot-apply-patch and patch-test-failed
    • 412 Precondition Failed without response body for unmet If-Match or If-Unmodified-Since consitions
    • 422 Unprocessable Entity with an example for patched-statement-invalid

Event Timeline

Change 826829 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Add "PATCH statement" endpoints to OpenAPI

https://gerrit.wikimedia.org/r/826829

Change 826829 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Add "PATCH statement" endpoints to OpenAPI

https://gerrit.wikimedia.org/r/826829