This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
API Files
M. Fazel Soltani edited this page Oct 10, 2019
·
7 revisions
This article documentates the Files API.
This API is designed for use in Clouddrop context.
- Add a new File
- Update an existing file
- Download a file
- Delete a file
- List of files
- Search for a file with specific parameters
-
POST
/files
Headername | Value |
---|---|
Content-Type | multipart/form-data |
Authorization | Bearer <token>
|
a binary data
Headername | Value |
---|---|
Statuscode | 200 |
{
"code": 200,
"type": "unknown",
"message": "additionalMetadata: Fisch\nFile uploaded to ./Fisch.jpg, 81340 bytes"
}
-
PUT
/files
Headername | Value |
---|---|
Authorization | Bearer <token>
|
Headername | Value |
---|---|
Statuscode | 200 |
Statuscode | 404 |
{
"id": -9223372036854776000,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
-
GET
/files/{ID}
Headername | Value |
---|---|
Authorization | Bearer <token>
|
Headername | Value |
---|---|
Statuscode | 200 |
{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
-
DELETE
/files/{ID}
Headername | Value |
---|---|
Authorization | Bearer <token>
|
Headername | Value |
---|---|
Statuscode | 200 |
-
GET
/files/list
Headername | Value |
---|---|
Authorization | Bearer <token>
|
Headername | Value |
---|---|
Statuscode | 200 |
-
GET
/files/list/search
Headername | Value |
---|---|
Authorization | Bearer <token>
|
Headername | Value |
---|---|
Statuscode | 204 |
-
API
-
Tutorials