wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/resources/items/list.json

Summary

Maintainability
Test Coverage
{
    "post": {
        "operationId": "addItem",
        "tags": [ "items" ],
        "summary": "Create a Wikibase Item",
        "parameters": [
            { "$ref": "../../global/parameters.json#/Authorization" }
        ],
        "requestBody": { "$ref": "./requests.json#/Item" },
        "responses": {
            "201": { "$ref": "../../global/responses.json#/Item" },
            "400": { "$ref": "./responses.json#/InvalidNewItemInput" },
            "403": { "$ref": "../../global/responses.json#/PermissionDenied" },
            "422": { "$ref": "../../global/responses.json#/DataPolicyViolation" },
            "429": { "$ref": "../../global/responses.json#/RequestLimitReached" },
            "500": { "$ref": "../../global/responses.json#/UnexpectedError" }
        }
    }
}