{
  "opencollection": "1.0.0",
  "info": {
    "name": "Wikidata REST API & MediaWiki Descriptions Items API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Items",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Wikidata Get a Wikidata Item",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.wikidata.org/w/rest.php/wikibase/v0/entities/items/:item_id",
            "headers": [
              {
                "name": "If-None-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "item_id",
                "value": "Q42",
                "type": "path",
                "description": "Wikidata item ID"
              }
            ]
          },
          "docs": "Returns a Wikidata item (Q-entity) with all its labels, descriptions, aliases, sitelinks, and statements in JSON format."
        },
        {
          "info": {
            "name": "Wikidata Update a Wikidata Item",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://www.wikidata.org/w/rest.php/wikibase/v0/entities/items/:item_id",
            "params": [
              {
                "name": "item_id",
                "value": "Q42",
                "type": "path",
                "description": "Wikidata item ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://www.mediawiki.org/w/index.php?title=Special:OAuth/authorize",
              "accessTokenUrl": "https://www.mediawiki.org/w/index.php?title=Special:OAuth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Applies a JSON patch to update an item. Requires authentication via OAuth2 or bot password. Includes edit comment and tags."
        },
        {
          "info": {
            "name": "Wikidata Create a New Wikidata Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.wikidata.org/w/rest.php/wikibase/v0/entities/items",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://www.mediawiki.org/w/index.php?title=Special:OAuth/authorize",
              "accessTokenUrl": "https://www.mediawiki.org/w/index.php?title=Special:OAuth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates a new Wikidata item with provided labels, descriptions, aliases, and statements."
        }
      ]
    }
  ],
  "bundled": true
}