a Bruno for highlight
This commit is contained in:
parent
189518a2ba
commit
469d5b045e
23
bruno/Highlight/Catalog (sample)/Add.bru
Normal file
23
bruno/Highlight/Catalog (sample)/Add.bru
Normal file
@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Add
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/:module/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
module: catalog
|
||||
alder: add
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"item":1,
|
||||
"category":1
|
||||
}
|
||||
}
|
23
bruno/Highlight/Catalog (sample)/Remove.bru
Normal file
23
bruno/Highlight/Catalog (sample)/Remove.bru
Normal file
@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Remove
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/:module/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
module: catalog
|
||||
alder: remove
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"item":1,
|
||||
"category":1
|
||||
}
|
||||
}
|
24
bruno/Highlight/Category/Add.bru
Normal file
24
bruno/Highlight/Category/Add.bru
Normal file
@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: Add
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/category/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
alder: add
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title":"For your starter",
|
||||
"desc":null,
|
||||
"background":null,
|
||||
"illustration":null
|
||||
}
|
||||
}
|
19
bruno/Highlight/Category/Detail.bru
Normal file
19
bruno/Highlight/Category/Detail.bru
Normal file
@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Detail
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/category/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
alder: detail
|
||||
}
|
||||
|
||||
body:json {
|
||||
{"id":1}
|
||||
}
|
25
bruno/Highlight/Category/Edit.bru
Normal file
25
bruno/Highlight/Category/Edit.bru
Normal file
@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: Edit
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/category/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
alder: edit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"id":1,
|
||||
"title":"For your starter (Edit)",
|
||||
"desc":null,
|
||||
"background":null,
|
||||
"illustration":null
|
||||
}
|
||||
}
|
19
bruno/Highlight/Category/List.bru
Normal file
19
bruno/Highlight/Category/List.bru
Normal file
@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: List
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/category/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
alder: list
|
||||
}
|
||||
|
||||
body:json {
|
||||
{}
|
||||
}
|
19
bruno/Highlight/Category/Remove.bru
Normal file
19
bruno/Highlight/Category/Remove.bru
Normal file
@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Remove
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:11000/api/highlight/category/:alder
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
alder: remove
|
||||
}
|
||||
|
||||
body:json {
|
||||
{"id":1}
|
||||
}
|
Loading…
Reference in New Issue
Block a user