feat: initialize
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: delete image
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/images/:id
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: image
|
||||
seq: 9
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: get all images
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/images/all
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~image:
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
image: @file(/C:/Users/nourk/Downloads/The water fall.jpg)
|
||||
title: small
|
||||
type: public
|
||||
~description:
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: get public images
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/images/public
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~image:
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
image: @file(/C:/Users/nourk/Downloads/The water fall.jpg)
|
||||
title: small
|
||||
type: public
|
||||
~description:
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: get user images
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url:
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: store image
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/images
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~image:
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
image: @file(/Users/amirmahdi/Downloads/paksazi.png)
|
||||
title: paksazi
|
||||
type: public
|
||||
~description:
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
meta {
|
||||
name: update image
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{baseUrl}}/images/:id
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"image":"",
|
||||
"title":"",
|
||||
"description":"",
|
||||
"type":""
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Reference in New Issue
Block a user