wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/global/requests.json

Summary

Maintainability
Test Coverage
{
    "Statement": {
        "description": "Payload containing a Wikibase Statement object and edit metadata",
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "$ref": "./request-parts.json#/StatementRequest"
                }
            }
        }
    },
    "StatementPatch": {
        "description": "Payload containing a JSON Patch document to be applied to a Statement and edit metadata",
        "required": true,
        "content": {
            "application/json-patch+json": {
                "schema": {
                    "$ref": "./request-parts.json#/StatementPatchRequest"
                }
            },
            "application/json": {
                "schema": {
                    "$ref": "./request-parts.json#/StatementPatchRequest"
                }
            }
        }
    },
    "Delete": {
        "description": "Edit payload containing edit metadata",
        "required": false,
        "content": {
            "application/json": {
                "schema": { "$ref": "./request-parts.json#/MediawikiEdit" },
                "example": {
                    "tags": [ ],
                    "bot": false,
                    "comment": "API edit fixing the modelling as discussed in ..."
                }
            }
        }
    }
}