wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
Test Coverage
{
    "/openapi.json": {
        "get": {
            "operationId": "getOpenApiDoc",
            "tags": [ "OpenAPI document" ],
            "summary": "Retrieve the OpenAPI document",
            "responses": {
                "200": {
                    "description": "OpenAPI document",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "openapi": "...",
                                "info": {
                                    "title": "Wikibase REST API",
                                    "version": "...",
                                    "description": "OpenAPI definition of Wikibase REST API"
                                },
                                "paths": "..."
                            }
                        }
                    }
                }
            }
        }
    },
    "/property-data-types": {
        "get": {
            "operationId": "getPropertyDataTypes",
            "tags": [ "Property data types" ],
            "summary": "Retrieve the map of Property data types to value types",
            "responses": {
                "200": {
                    "description": "The map of Property data types to value types",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "string"
                                }
                            },
                            "example": {
                                "data-type": "value-type"
                            }
                        }
                    }
                }
            }
        }
    },
    "/entities/items": {
        "$ref": "./items/list.json"
    },
    "/entities/items/{item_id}": {
        "$ref": "./items/single.json"
    },
    "/entities/items/{item_id}/sitelinks": {
        "$ref": "./sitelinks/list.json"
    },
    "/entities/items/{item_id}/sitelinks/{site_id}": {
        "$ref": "./sitelinks/single.json"
    },
    "/entities/properties": {
        "$ref": "./properties/list.json"
    },
    "/entities/properties/{property_id}": {
        "$ref": "./properties/single.json"
    },
    "/entities/items/{item_id}/descriptions": {
        "$ref": "./descriptions/list-for-item.json"
    },
    "/entities/properties/{property_id}/descriptions": {
        "$ref": "./descriptions/list-for-property.json"
    },
    "/entities/items/{item_id}/descriptions/{language_code}": {
        "$ref": "./descriptions/description-in-language-for-item.json"
    },
    "/entities/items/{item_id}/descriptions_with_language_fallback/{language_code}": {
        "$ref": "./descriptions/description-with-fallback-for-item.json"
    },
    "/entities/properties/{property_id}/descriptions/{language_code}": {
        "$ref": "./descriptions/description-in-language-for-property.json"
    },
    "/entities/properties/{property_id}/descriptions_with_language_fallback/{language_code}": {
        "$ref": "./descriptions/description-with-fallback-for-property.json"
    },
    "/entities/items/{item_id}/statements": {
        "$ref": "./statements/list-for-item.json"
    },
    "/entities/items/{item_id}/statements/{statement_id}": {
        "$ref": "./statements/single-for-item.json"
    },
    "/entities/items/{item_id}/labels": {
        "$ref": "./labels/list-for-item.json"
    },
    "/entities/properties/{property_id}/labels": {
        "$ref": "./labels/list-for-property.json"
    },
    "/entities/items/{item_id}/labels/{language_code}": {
        "$ref": "./labels/label-in-language-for-item.json"
    },
    "/entities/items/{item_id}/labels_with_language_fallback/{language_code}": {
        "$ref": "./labels/label-with-fallback-for-item.json"
    },
    "/entities/properties/{property_id}/labels/{language_code}": {
        "$ref": "./labels/label-in-language-for-property.json"
    },
    "/entities/properties/{property_id}/labels_with_language_fallback/{language_code}": {
        "$ref": "./labels/label-with-fallback-for-property.json"
    },
    "/entities/items/{item_id}/aliases": {
        "$ref": "./aliases/list-for-item.json"
    },
    "/entities/properties/{property_id}/aliases": {
        "$ref": "./aliases/list-for-property.json"
    },
    "/entities/items/{item_id}/aliases/{language_code}": {
        "$ref": "./aliases/aliases-in-language-for-item.json"
    },
    "/entities/properties/{property_id}/aliases/{language_code}": {
        "$ref": "./aliases/aliases-in-language-for-property.json"
    },
    "/entities/properties/{property_id}/statements": {
        "$ref": "./statements/list-for-property.json"
    },
    "/entities/properties/{property_id}/statements/{statement_id}": {
        "$ref": "./statements/single-for-property.json"
    },
    "/statements/{statement_id}": {
        "$ref": "./statements/single.json"
    }
}