wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/resources/properties/responses.json

Summary

Maintainability
Test Coverage
{
    "InvalidNewPropertyInput": {
        "description": "The request cannot be processed",
        "content": {
            "application/json": {
                "schema": { "$ref": "../../global/response-parts.json#/Error" },
                "examples": {
                    "value-too-long": { "$ref": "../../global/examples.json#/ValueTooLongExample" },
                    "statement-group-property-id-mismatch": { "$ref": "../../global/examples.json#/StatementGroupPropertyIdMismatch" },
                    "referenced-resource-not-found": { "$ref": "../../global/examples.json#/ReferencedResourceNotFoundExample" },
                    "invalid-value": { "$ref": "../../global/examples.json#/InvalidValueExample" },
                    "missing-field": { "$ref": "../../global/examples.json#/MissingFieldExample" },
                    "invalid-key": { "$ref": "../../global/examples.json#/InvalidKeyExample" },
                    "resource-too-large": { "$ref": "../../global/examples.json#/ResourceTooLargeExample" }
                }
            }
        },
        "headers": {
            "Content-Language": {
                "schema": { "type": "string" },
                "description": "Language code of the language in which error message is provided"
            }
        }
    },
    "InvalidGetPropertyInput": {
        "description": "The request cannot be processed",
        "content": {
            "application/json": {
                "schema": { "$ref": "../../global/response-parts.json#/Error" },
                "examples": {
                    "invalid-path-parameter": { "$ref": "../../global/examples.json#/InvalidPathParameterExample" },
                    "invalid-query-parameter": { "$ref": "../../global/examples.json#/InvalidQueryParameterExample" }
                }
            }
        },
        "headers": {
            "Content-Language": {
                "schema": { "type": "string" },
                "description": "Language code of the language in which error message is provided"
            }
        }
    }
}