Skip to content

Commit

Permalink
Update backend-api-docs.json (#2581)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 13, 2023
1 parent 54f8310 commit 83e76e8
Showing 1 changed file with 214 additions and 16 deletions.
230 changes: 214 additions & 16 deletions save-backend/backend-api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@
"/api/v1/contests/sample/get": {
"get": {
"description": "Get contest sample by id.",
"operationId": "getById_1",
"operationId": "getById",
"parameters": [
{
"in": "query",
Expand Down Expand Up @@ -2145,12 +2145,12 @@
]
}
},
"/api/v1/cosv/batch-upload": {
"/api/v1/cosv/{organizationName}/batch-upload": {
"post": {
"operationId": "batchUpload",
"parameters": [
{
"in": "query",
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
Expand Down Expand Up @@ -2204,7 +2204,7 @@
"schema": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/RawCosvFileDto"
}
}
}
Expand All @@ -2222,18 +2222,27 @@
]
}
},
"/api/v1/cosv/get-by-id/{cosvId}": {
"get": {
"operationId": "getById",
"/api/v1/cosv/{organizationName}/delete/{id}": {
"delete": {
"operationId": "delete_2",
"parameters": [
{
"in": "path",
"name": "cosvId",
"name": "organizationName",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"example": 123,
"in": "header",
Expand Down Expand Up @@ -2275,12 +2284,164 @@
]
}
},
"/api/v1/cosv/upload": {
"/api/v1/cosv/{organizationName}/download/{id}": {
"get": {
"operationId": "download_1",
"parameters": [
{
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"example": 123,
"in": "header",
"name": "X-Authorization-Id",
"required": true
},
{
"example": "user",
"in": "header",
"name": "X-Authorization-Name",
"required": true
},
{
"example": "VIEWER",
"in": "header",
"name": "X-Authorization-Roles",
"required": true
}
],
"responses": {
"401": {
"content": {
"application/octet-stream": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"char": {
"type": "string"
},
"direct": {
"type": "boolean"
},
"double": {
"type": "number",
"format": "double"
},
"float": {
"type": "number",
"format": "float"
},
"int": {
"type": "integer",
"format": "int32"
},
"long": {
"type": "integer",
"format": "int64"
},
"readOnly": {
"type": "boolean"
},
"short": {
"type": "integer",
"format": "int32"
}
}
}
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"tags": [
"cosv-controller"
]
}
},
"/api/v1/cosv/{organizationName}/list": {
"get": {
"operationId": "list_2",
"parameters": [
{
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
"type": "string"
}
},
{
"example": 123,
"in": "header",
"name": "X-Authorization-Id",
"required": true
},
{
"example": "user",
"in": "header",
"name": "X-Authorization-Name",
"required": true
},
{
"example": "VIEWER",
"in": "header",
"name": "X-Authorization-Roles",
"required": true
}
],
"responses": {
"401": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RawCosvFileDto"
}
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"tags": [
"cosv-controller"
]
}
},
"/api/v1/cosv/{organizationName}/submit-to-process": {
"post": {
"operationId": "upload_1",
"operationId": "submitToProcess",
"parameters": [
{
"in": "query",
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
Expand Down Expand Up @@ -2310,7 +2471,11 @@
"content": {
"application/json": {
"schema": {
"type": "string"
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
}
}
},
Expand All @@ -2321,10 +2486,7 @@
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
"type": "string"
}
}
},
Expand Down Expand Up @@ -12881,6 +13043,42 @@
}
}
},
"RawCosvFileDto": {
"required": [
"fileName",
"organizationName",
"status",
"userName"
],
"type": "object",
"properties": {
"fileName": {
"type": "string"
},
"id": {
"type": "integer",
"format": "int64"
},
"organizationName": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"FAILED",
"IN_PROGRESS",
"PROCESSED",
"UPLOADED"
]
},
"statusMessage": {
"type": "string"
},
"userName": {
"type": "string"
}
}
},
"Sdk": {
"required": [
"name",
Expand Down

0 comments on commit 83e76e8

Please sign in to comment.