123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- {
- "get": {
- "tags": ["Releases"],
- "description": "Retrieve a file for a given release.",
- "operationId": "Retrieve a Project Release's File",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_id_or_slug",
- "in": "path",
- "description": "The id or slug of the project.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "version",
- "in": "path",
- "description": "The version identifier of the release.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "file_id",
- "in": "path",
- "required": true,
- "description": "The ID of the file to retrieve.",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "download",
- "in": "query",
- "description": "If this is set to true, then the response payload will be the raw file contents. Otherwise, the response will be the file metadata as JSON.",
- "schema": {
- "type": "boolean"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/releases/release-file.json#/ReleaseFile"
- },
- "example": {
- "dateCreated": "2018-11-06T21:20:19.150Z",
- "dist": null,
- "headers": {
- "Content-Type": "text/plain; encoding=utf-8"
- },
- "id": "1",
- "name": "/demo/message-for-you.txt",
- "sha1": "2ef7bde608ce5404e97d5f042f95f89f1c232871",
- "size": 12
- }
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [
- {
- "auth_token": ["project:releases"]
- }
- ]
- },
- "put": {
- "tags": ["Releases"],
- "description": "Update a project release file.",
- "operationId": "Update a Project Release File",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_id_or_slug",
- "in": "path",
- "description": "The id or slug of the project.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "version",
- "in": "path",
- "description": "The version identifier of the release.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "file_id",
- "in": "path",
- "description": "The ID of the file to retrieve.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "The new name (full path) of the file."
- },
- "dist": {
- "type": "string",
- "description": "The new name of the dist."
- }
- }
- },
- "example": {
- "name": "/demo/goodbye.txt"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/releases/release-file.json#/ReleaseFile"
- },
- "example": {
- "dateCreated": "2018-11-06T21:20:22.894Z",
- "dist": null,
- "headers": {
- "Content-Type": "text/plain; encoding=utf-8"
- },
- "id": "3",
- "name": "/demo/goodbye.txt",
- "sha1": "94d6b21e962a9fc65889617ec1f17a1e2fe11b65",
- "size": 15
- }
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [
- {
- "auth_token": ["project:releases"]
- }
- ]
- },
- "delete": {
- "tags": ["Releases"],
- "description": "Delete a file for a given release.",
- "operationId": "Delete a Project Release's File",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization the release belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_id_or_slug",
- "in": "path",
- "description": "The id or slug of the project.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "version",
- "in": "path",
- "description": "The version identifier of the release.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "file_id",
- "in": "path",
- "description": "The ID of the file to delete.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [
- {
- "auth_token": ["project:releases"]
- }
- ]
- }
- }
|