wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/resources/descriptions/description-with-fallback-for-item.json

Summary

Maintainability
Test Coverage
{
    "get": {
        "operationId": "getItemDescriptionWithFallback",
        "tags": [ "descriptions" ],
        "summary": "Retrieve an Item's description in a specific language, with language fallback",
        "parameters": [
            { "$ref": "../../global/parameters.json#/ItemId" },
            { "$ref": "../../global/parameters.json#/LanguageCode" },
            { "$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#/ItemDescription" },
            "304": { "$ref": "../../global/responses.json#/NotModified" },
            "307": { "$ref": "../../global/responses.json#/MovedTemporarily" },
            "308": { "$ref": "../../global/responses.json#/MovedPermanently" },
            "400": { "$ref": "../../global/responses.json#/InvalidTermByLanguageInput" },
            "404": { "$ref": "../../global/responses.json#/ResourceNotFound" },
            "412": { "$ref": "../../global/responses.json#/PreconditionFailedError" },
            "500": { "$ref": "../../global/responses.json#/UnexpectedError" }
        }
    }
}