first commit
This commit is contained in:
commit
ea35958607
19 changed files with 285 additions and 0 deletions
17
api/files/delete body.bru
Normal file
17
api/files/delete body.bru
Normal file
|
@ -0,0 +1,17 @@
|
|||
meta {
|
||||
name: delete body
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/api/files/delete
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"files": "0195823a-5712-7000-801a-88bcf68e1c3d"
|
||||
}
|
||||
}
|
15
api/files/delete.bru
Normal file
15
api/files/delete.bru
Normal file
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: delete
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/api/files/delete/:id-or-name
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id-or-name: 0195823a-5712-7000-801a-88bcf68e1c3d
|
||||
}
|
19
api/files/upload.bru
Normal file
19
api/files/upload.bru
Normal file
|
@ -0,0 +1,19 @@
|
|||
meta {
|
||||
name: upload
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/api/files/upload
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
X-Clear-Exif: 1
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
file: @file(/mnt/External Drive/Images/Pasted image.png)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue