Update Upload a new applcation
parent
0277c286b6
commit
31f99afbde
|
@ -37,28 +37,42 @@ If it is successful:
|
||||||
"pub": "matu6968",
|
"pub": "matu6968",
|
||||||
"path": "/uploads/App_Market_Manager/index.js"
|
"path": "/uploads/App_Market_Manager/index.js"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Status code: 200
|
||||||
```
|
```
|
||||||
If there is no token or a invalid token:
|
If there is no token or a invalid token:
|
||||||
```
|
```
|
||||||
Unauthorized
|
Unauthorized
|
||||||
|
|
||||||
|
Status code: 401
|
||||||
```
|
```
|
||||||
If there is invalid JSON metadata in the multipart body:
|
If there is invalid JSON metadata in the multipart body:
|
||||||
```
|
```
|
||||||
Invalid metadata JSON
|
Invalid metadata JSON
|
||||||
|
|
||||||
|
Status code: 400
|
||||||
```
|
```
|
||||||
If there is a problem during a file upload or no file is specified during uploading:
|
If there is a problem during a file upload or no file is specified during uploading:
|
||||||
```
|
```
|
||||||
File upload error
|
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)
|
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
|
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)
|
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
|
Failed to save app data
|
||||||
|
|
||||||
|
Status code: 500
|
||||||
```
|
```
|
||||||
If there is invalid multipart body:
|
If there is invalid multipart body:
|
||||||
```
|
```
|
||||||
Invalid form data
|
Invalid form data
|
||||||
|
|
||||||
|
Status code: 400
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user