wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
Test Coverage
{
    "get": {
        "operationId": "getPropertyStatements",
        "tags": [ "statements" ],
        "summary": "Retrieve Statements from a Property",
        "parameters": [
            { "$ref": "../../global/parameters.json#/PropertyId" },
            { "$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#/PropertyStatements" },
            "304": { "$ref": "../../global/responses.json#/NotModified" },
            "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": "addPropertyStatement",
        "tags": [ "statements" ],
        "summary": "Add a new Statement to a Property",
        "parameters": [
            { "$ref": "../../global/parameters.json#/PropertyId" },
            { "$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#/PropertyStatementCreated" },
            "400": { "$ref": "../../global/responses.json#/InvalidNewStatementInput" },
            "403": { "$ref": "../../global/responses.json#/PermissionDenied" },
            "404": { "$ref": "../../global/responses.json#/ResourceNotFound" },
            "412": { "$ref": "../../global/responses.json#/PreconditionFailedError" },
            "429": { "$ref": "../../global/responses.json#/RequestLimitReached" },
            "500": { "$ref": "../../global/responses.json#/UnexpectedError" }
        }
    }
}