mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 19:51:17 +00:00
feat: base bruno routes
generated from OpenAPI v3 spec
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get a list of a customer's orders.
|
||||
If accessed through the gateway - shows the current user's orders.
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/v1/order/list
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~customerId:
|
||||
}
|
||||
19
tests/bruno/order/OrderService_PlaceOrder.bru
Normal file
19
tests/bruno/order/OrderService_PlaceOrder.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: OrderService_PlaceOrder
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/v1/order/place
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~customerId:
|
||||
}
|
||||
|
||||
body:json {
|
||||
{}
|
||||
}
|
||||
15
tests/bruno/order/OrderService_ViewOrder.bru
Normal file
15
tests/bruno/order/OrderService_ViewOrder.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: OrderService_ViewOrder
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/v1/order/orders/:orderId
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
orderId:
|
||||
}
|
||||
11
tests/bruno/order/View information about the service.bru
Normal file
11
tests/bruno/order/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: View information about the service.
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/v1/order/service
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
7
tests/bruno/order/folder.bru
Normal file
7
tests/bruno/order/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
||||
meta {
|
||||
name: order
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user