{ "opencollection": "1.0.0", "info": { "name": "Burger Singh Media API", "version": "wp/v2" }, "items": [ { "info": { "name": "Media", "type": "folder" }, "items": [ { "info": { "name": "List media attachments", "type": "http" }, "http": { "method": "GET", "url": "https://www.burgersinghonline.com/wp-json/wp/v2/media", "params": [ { "name": "page", "value": "", "type": "query", "description": "Current page of the collection. Defaults to 1." }, { "name": "per_page", "value": "", "type": "query", "description": "Maximum number of items returned. Verified live: values outside 1-100 return HTTP 400 rest_invalid_param." }, { "name": "search", "value": "", "type": "query", "description": "Limit results to those matching a string." }, { "name": "order", "value": "", "type": "query", "description": "Order sort attribute ascending or descending." }, { "name": "orderby", "value": "", "type": "query", "description": "Sort collection by object attribute." }, { "name": "context", "value": "", "type": "query", "description": "Scope under which the request is made; determines the fields present in the response. Only view and embed are available anonymously." }, { "name": "_fields", "value": "", "type": "query", "description": "Comma-separated list of fields to limit the response to. Verified live." }, { "name": "media_type", "value": "", "type": "query", "description": "Limit results to attachments of a specific media type." }, { "name": "mime_type", "value": "", "type": "query", "description": "Limit results to attachments of a specific MIME type." }, { "name": "parent", "value": "", "type": "query", "description": "Limit results to attachments attached to the given post IDs." }, { "name": "slug", "value": "", "type": "query", "description": "Limit results to attachments with one of the given slugs." } ] }, "docs": "Returns a paginated collection of media attachments. Counts come back in X-WP-Total / X-WP-TotalPages." }, { "info": { "name": "Get a media attachment", "type": "http" }, "http": { "method": "GET", "url": "https://www.burgersinghonline.com/wp-json/wp/v2/media/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique numeric identifier for the object." }, { "name": "context", "value": "", "type": "query", "description": "Scope under which the request is made; determines the fields present in the response. Only view and embed are available anonymously." }, { "name": "_fields", "value": "", "type": "query", "description": "Comma-separated list of fields to limit the response to. Verified live." } ] }, "docs": "Returns a single media attachment by its numeric WordPress attachment ID." } ] } ], "bundled": true }