{ "opencollection": "1.0.0", "info": { "name": "Discourse API Documentation Admin Categories API", "version": "latest" }, "items": [ { "info": { "name": "Categories", "type": "folder" }, "items": [ { "info": { "name": "Retrieves a list of categories", "type": "http" }, "http": { "method": "GET", "url": "https://{defaultHost}/categories.json", "params": [ { "name": "include_subcategories", "value": "", "type": "query" } ] }, "docs": "Retrieves a list of categories" }, { "info": { "name": "Creates a category", "type": "http" }, "http": { "method": "POST", "url": "https://{defaultHost}/categories.json", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a category" }, { "info": { "name": "Updates a category", "type": "http" }, "http": { "method": "PUT", "url": "https://{defaultHost}/categories/:id.json", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a category" }, { "info": { "name": "List topics", "type": "http" }, "http": { "method": "GET", "url": "https://{defaultHost}/c/:slug/:id.json", "params": [ { "name": "slug", "value": "", "type": "path" }, { "name": "id", "value": "", "type": "path" } ] }, "docs": "List topics" }, { "info": { "name": "Show category", "type": "http" }, "http": { "method": "GET", "url": "https://{defaultHost}/c/:id/show.json", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Show category" }, { "info": { "name": "Get site info", "type": "http" }, "http": { "method": "GET", "url": "https://{defaultHost}/site.json" }, "docs": "Can be used to fetch all categories and subcategories" } ] } ], "bundled": true }