wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/resources/statements/list-for-item.json

Summary

Maintainability
Test Coverage
{
    "get": {
        "operationId": "getItemStatements",
        "tags": [ "statements" ],
        "summary": "Retrieve Statements from an Item",
        "parameters": [
            { "$ref": "../../global/parameters.json#/ItemId" },
            { "$ref": "../../global/parameters.json#/PropertyFilter" },
            { "$ref": "../../global/parameters.json#/IfNoneMatch" },
            { "$ref": "../../global/parameters.json#/IfModifiedSince" },
            { "$ref": "../../global/parameters.json#/IfMatch" },
            { "$ref": "../../global/parameters.json#/IfUnmodifiedSince" },
            { "$ref": "../../global/parameters.json#/Authorization" }
        ],
        "responses": {
            "200": { "$ref": "./responses.json#/ItemStatements" },
            "304": { "$ref": "../../global/responses.json#/NotModified" },
            "308": { "$ref": "../../global/responses.json#/MovedPermanently" },
            "400": { "$ref": "../../global/responses.json#/InvalidRetrieveStatementsInput" },
            "404": { "$ref": "../../global/responses.json#/ResourceNotFound" },
            "412": { "$ref": "../../global/responses.json#/PreconditionFailedError" },
            "500": { "$ref": "../../global/responses.json#/UnexpectedError" }
        }
    },
    "post": {
        "operationId": "addItemStatement",
        "tags": [ "statements" ],
        "summary": "Add a new Statement to an Item",
        "parameters": [
            { "$ref": "../../global/parameters.json#/ItemId" },
            { "$ref": "../../global/parameters.json#/IfMatch" },
            { "$ref": "../../global/parameters.json#/IfUnmodifiedSince" },
            { "$ref": "../../global/parameters.json#/IfNoneMatch" }
        ],
        "requestBody": { "$ref": "../../global/requests.json#/Statement" },
        "responses": {
            "201": { "$ref": "./responses.json#/ItemStatementCreated" },
            "400": { "$ref": "../../global/responses.json#/InvalidNewStatementInput" },
            "403": { "$ref": "../../global/responses.json#/PermissionDenied" },
            "404": { "$ref": "../../global/responses.json#/ResourceNotFound" },
            "409": { "$ref": "../../global/responses.json#/ItemRedirected" },
            "412": { "$ref": "../../global/responses.json#/PreconditionFailedError" },
            "429": { "$ref": "../../global/responses.json#/RequestLimitReached" },
            "500": { "$ref": "../../global/responses.json#/UnexpectedError" }
        }
    }
}