This commit is contained in:
20
bruno/products/Create.bru
Normal file
20
bruno/products/Create.bru
Normal file
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Create
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{Service}}/{{Route}}
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{{ExamplePOSTBody}}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
16
bruno/products/Delete one.bru
Normal file
16
bruno/products/Delete one.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Delete one
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{Service}}/{{Route}}/6
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
16
bruno/products/Get all.bru
Normal file
16
bruno/products/Get all.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get all
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{Service}}/{{Route}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
16
bruno/products/Get one.bru
Normal file
16
bruno/products/Get one.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get one
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{Service}}/{{Route}}/1
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
20
bruno/products/Update one.bru
Normal file
20
bruno/products/Update one.bru
Normal file
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Update one
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{Service}}/{{Route}}/3
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{{ExamplePUTBody}}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
35
bruno/products/folder.bru
Normal file
35
bruno/products/folder.bru
Normal file
@@ -0,0 +1,35 @@
|
||||
meta {
|
||||
name: products
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
Route: products
|
||||
ExamplePOSTBody: '''
|
||||
{
|
||||
"name": "test",
|
||||
"unit": 1,
|
||||
"price": 3.50,
|
||||
"price_kg": 3.50,
|
||||
"weight": "1.0",
|
||||
"productor_id": 1,
|
||||
"type": 2,
|
||||
"shipment_ids": []
|
||||
}
|
||||
'''
|
||||
ExamplePUTBody: '''
|
||||
{
|
||||
"name": "test",
|
||||
"unit": 1,
|
||||
"price": 3.50,
|
||||
"price_kg": 3.50,
|
||||
"weight": "1.0",
|
||||
"productor_id": 1,
|
||||
"type": 2,
|
||||
"shipment_ids": [1]
|
||||
}
|
||||
'''
|
||||
}
|
||||
Reference in New Issue
Block a user