Skip to content

Commit

Permalink
removed duplicate keys from dlpapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashrekker committed Apr 12, 2023
1 parent 9139945 commit 4686e42
Showing 1 changed file with 53 additions and 110 deletions.
163 changes: 53 additions & 110 deletions backend/openapi/dlpapi.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,55 +157,55 @@ paths:
type: string
example: "User is not authenticated"
/api/getSignedUploadUrl:
post:
description: Endpoint to upload files to S3
requestBody:
post:
description: Endpoint to upload files to S3
requestBody:
content:
application/json:
schema:
type: object
required:
- version
- filename
- file
properties:
version:
type: int
description: The file version
filename:
type: string
description: The name of the file
file:
type: object
description: the file
example:
version: 2
filename: "file"
file: { "col1": [val1, val2], "col2": [val3, val4] }
required: true
responses:
"200":
description: Data uploaded successfully
content:
application/json:
schema:
type: object
required:
- version
- filename
- file
properties:
version:
type: int
description: The file version
filename:
message:
type: string
description: The name of the file
file:
type: object
description: the file
example:
version: 2
filename: "file"
file: { "col1": [val1, val2], "col2": [val3, val4] }
required: true
responses:
"200":
description: Data uploaded successfully
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: "Upload successful"
"400":
description: Upload didn't go through successfully. This is usually something wrong with your code
"401":
description: User is not authenticated
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "User is not authenticated"
example: "Upload successful"
"400":
description: Upload didn't go through successfully. This is usually something wrong with your code
"401":
description: User is not authenticated
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "User is not authenticated"
/api/img-run:
post:
description: Endpoint to train image models
Expand Down Expand Up @@ -562,51 +562,36 @@ paths:
error:
type: string
example: "User is not authenticated"

/api/upload:
post:
description: Endpoint to update progress data
description: Endpoint to upload files locally
requestBody:
content:
application/json:
schema:
type: object
required:
- user_id
- moduleID
- sectionID
- questionID
- file
properties:
user_id:
file:
type: object
description: user id
moduleID:
type: int
description: module id
sectionID:
type: int
description: section id
questionID:
type: int
description: question id
description: the file
example:
user_id: { "col1": [val1, val2], "col2": [val3, val4] }
moduleID: 1
sectionID: 1
questionID: 1
file: { "col1": [val1, val2], "col2": [val3, val4] }
required: true
responses:
"200":
description: Progress data updated successfully
description: Data uploaded successfully
content:
application/json:
schema:
type: object
properties:
status:
message:
type: string
example: "success"
example: "Upload success"
"400":
description: Progress data wasn't updated successfully. This is usually something wrong with your code
description: Upload didn't go through successfully. This is usually something wrong with your code
"401":
description: User is not authenticated
content:
Expand All @@ -617,46 +602,6 @@ paths:
error:
type: string
example: "User is not authenticated"
/api/upload:
post:
description: Endpoint to upload files locally
requestBody:
content:
application/json:
schema:
type: object
required:
- file
properties:
file:
type: object
description: the file
example:
file: { "col1": [val1, val2], "col2": [val3, val4] }
required: true
responses:
"200":
description: Data uploaded successfully
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: "Upload success"
"400":
description: Upload didn't go through successfully. This is usually something wrong with your code
"401":
description: User is not authenticated
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "User is not authenticated"
/api/writeToQueue:
post:
description: Endpoint to add training requests to SQS queue
Expand Down Expand Up @@ -792,5 +737,3 @@ paths:
error:
type: string
example: "User is not authenticated"


0 comments on commit 4686e42

Please sign in to comment.