generated from tsivinsky/go-template
allow to upload images
but also files, hmmmm
This commit is contained in:
9
docs/api/.gitignore
vendored
Normal file
9
docs/api/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Secrets
|
||||
.env*
|
||||
|
||||
# Dependencies
|
||||
node_modules
|
||||
|
||||
# OS files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
7
docs/api/auth/folder.yml
Normal file
7
docs/api/auth/folder.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: auth
|
||||
type: folder
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
22
docs/api/auth/login user.yml
Normal file
22
docs/api/auth/login user.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: login user
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{base_url}}/api/auth/login"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"email": "daniil@tsivinsky.com",
|
||||
"password": "Daniil2000"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
22
docs/api/auth/register user.yml
Normal file
22
docs/api/auth/register user.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: register user
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{base_url}}/api/auth/register"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"email": "daniil@tsivinsky.com",
|
||||
"password": "Daniil2000"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
4
docs/api/environments/dev.yml
Normal file
4
docs/api/environments/dev.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
name: dev
|
||||
variables:
|
||||
- name: base_url
|
||||
value: http://localhost:5000
|
||||
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
|
||||
10
docs/api/opencollection.yml
Normal file
10
docs/api/opencollection.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
opencollection: 1.0.0
|
||||
|
||||
info:
|
||||
name: image-storage
|
||||
bundled: false
|
||||
extensions:
|
||||
bruno:
|
||||
ignore:
|
||||
- node_modules
|
||||
- .git
|
||||
Reference in New Issue
Block a user