{ "opencollection": "1.0.0", "info": { "name": "The Cat Breeds Votes API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Votes", "type": "folder" }, "items": [ { "info": { "name": "List Votes", "type": "http" }, "http": { "method": "GET", "url": "https://api.thecatapi.com/v1/votes", "params": [ { "name": "limit", "value": "", "type": "query" }, { "name": "page", "value": "", "type": "query" }, { "name": "sub_id", "value": "", "type": "query", "description": "Filter by sub-account identifier." } ] }, "docs": "Retrieve all votes cast by the authenticated user." }, { "info": { "name": "Create Vote", "type": "http" }, "http": { "method": "POST", "url": "https://api.thecatapi.com/v1/votes", "body": { "type": "json", "data": "{}" } }, "docs": "Cast an upvote (1) or downvote (0) on a cat image." }, { "info": { "name": "Get Vote", "type": "http" }, "http": { "method": "GET", "url": "https://api.thecatapi.com/v1/votes/:vote_id", "params": [ { "name": "vote_id", "value": "", "type": "path" } ] }, "docs": "Retrieve a specific vote by its ID." }, { "info": { "name": "Delete Vote", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.thecatapi.com/v1/votes/:vote_id", "params": [ { "name": "vote_id", "value": "", "type": "path" } ] }, "docs": "Remove a vote cast by the authenticated user." } ] } ], "bundled": true }