From 31f99afbde97ddf165692f0493213bd9377d0c52 Mon Sep 17 00:00:00 2001 From: matu6968 Date: Mon, 11 Nov 2024 00:00:12 +0100 Subject: [PATCH] Update Upload a new applcation --- Upload-a-new-applcation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Upload-a-new-applcation.md b/Upload-a-new-applcation.md index 8b745b3..2fcb974 100644 --- a/Upload-a-new-applcation.md +++ b/Upload-a-new-applcation.md @@ -37,28 +37,42 @@ If it is successful: "pub": "matu6968", "path": "/uploads/App_Market_Manager/index.js" } + +Status code: 200 ``` If there is no token or a invalid token: ``` Unauthorized + +Status code: 401 ``` If there is invalid JSON metadata in the multipart body: ``` Invalid metadata JSON + +Status code: 400 ``` If there is a problem during a file upload or no file is specified during uploading: ``` File upload error + +Status code: 400 ``` If there is a problem while saving the uploaded file: (likely cause is directory where the binary is located is set to read only) ``` Failed to save file + +Status code: 500 ``` If there is a problem while saving apps.json onto the host: (likely cause is directory where the binary is located is set to read only) ``` Failed to save app data + +Status code: 500 ``` If there is invalid multipart body: ``` Invalid form data + +Status code: 400 ``` \ No newline at end of file