{ "opencollection": "1.0.0", "info": { "name": "Weblate's REST addons units API", "version": "1.0" }, "items": [ { "info": { "name": "units", "type": "folder" }, "items": [ { "info": { "name": "api_units_list", "type": "http" }, "http": { "method": "GET", "url": "http:/api/units/", "params": [ { "name": "page", "value": "", "type": "query", "description": "A page number within the paginated result set." }, { "name": "page_size", "value": "", "type": "query", "description": "Number of results to return per page." } ], "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Return a list of translation units." }, { "info": { "name": "api_units_retrieve", "type": "http" }, "http": { "method": "GET", "url": "http:/api/units/:id/", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Return information about translation unit." }, { "info": { "name": "api_units_update", "type": "http" }, "http": { "method": "PUT", "url": "http:/api/units/:id/", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Perform full update on translation unit." }, { "info": { "name": "api_units_partial_update", "type": "http" }, "http": { "method": "PATCH", "url": "http:/api/units/:id/", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Perform partial update on translation unit." }, { "info": { "name": "api_units_destroy", "type": "http" }, "http": { "method": "DELETE", "url": "http:/api/units/:id/", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Delete a translation unit." }, { "info": { "name": "api_units_comments_list", "type": "http" }, "http": { "method": "GET", "url": "http:/api/units/:id/comments/", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "page", "value": "", "type": "query", "description": "A page number within the paginated result set." }, { "name": "page_size", "value": "", "type": "query", "description": "Number of results to return per page." } ], "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Return a list of comments on the unit." }, { "info": { "name": "api_units_comments_create", "type": "http" }, "http": { "method": "POST", "url": "http:/api/units/:id/comments/", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Add a comment to the unit." }, { "info": { "name": "api_units_translations_retrieve", "type": "http" }, "http": { "method": "GET", "url": "http:/api/units/:id/translations/", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "Token", "value": "{{Token}}", "placement": "header" } }, "docs": "Units API." } ] } ], "bundled": true }