generated from tsivinsky/go-template
allow to upload images
but also files, hmmmm
This commit is contained in:
19
docs/api/images/delete image.yml
Normal file
19
docs/api/images/delete image.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
info:
|
||||
name: delete image
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{base_url}}/api/images/:id"
|
||||
params:
|
||||
- name: id
|
||||
value: 019cf7de-0844-76d0-9d84-a4bbe7afc475
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
7
docs/api/images/folder.yml
Normal file
7
docs/api/images/folder.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: images
|
||||
type: folder
|
||||
seq: 2
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
15
docs/api/images/get user images.yml
Normal file
15
docs/api/images/get user images.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
info:
|
||||
name: get user images
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{base_url}}/api/images"
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
21
docs/api/images/upload new image.yml
Normal file
21
docs/api/images/upload new image.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
info:
|
||||
name: upload new image
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{base_url}}/api/images"
|
||||
body:
|
||||
type: file
|
||||
data:
|
||||
- filePath: /home/daniil/Pictures/glizzy.png
|
||||
contentType: image/png
|
||||
selected: true
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
Reference in New Issue
Block a user