From 4686e42cd9691ec067b55a4651c14cf3702454e8 Mon Sep 17 00:00:00 2001 From: Austin Tsang <47958374+Dashrekker@users.noreply.github.com> Date: Wed, 12 Apr 2023 18:55:40 -0400 Subject: [PATCH] removed duplicate keys from dlpapi --- backend/openapi/dlpapi.openapi.yaml | 163 +++++++++------------------- 1 file changed, 53 insertions(+), 110 deletions(-) diff --git a/backend/openapi/dlpapi.openapi.yaml b/backend/openapi/dlpapi.openapi.yaml index fb71eeab5..41c5458c1 100644 --- a/backend/openapi/dlpapi.openapi.yaml +++ b/backend/openapi/dlpapi.openapi.yaml @@ -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 @@ -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: @@ -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 @@ -792,5 +737,3 @@ paths: error: type: string example: "User is not authenticated" - -