mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 11:41:18 +00:00
feat: base bruno routes
generated from OpenAPI v3 spec
This commit is contained in:
@@ -144,7 +144,7 @@ A full deployment will, in the nature of microservices being independent (etc),
|
|||||||
|
|
||||||
### Improving The Documentation
|
### Improving The Documentation
|
||||||
|
|
||||||
Feel free to open a PR if you'd like to contribute updates which add to or improve the current documentation. There currently isn't standard that the documentation is following.
|
Feel free to open a PR if you'd like to contribute updates which add to or improve the current documentation. There currently isn't a standard that the documentation is following.
|
||||||
|
|
||||||
I do lint my Markdown files using [markdownlint](https://github.com/DavidAnson/markdownlint).
|
I do lint my Markdown files using [markdownlint](https://github.com/DavidAnson/markdownlint).
|
||||||
|
|
||||||
|
|||||||
11
tests/bruno/auth/AuthService_GetJwks.bru
Normal file
11
tests/bruno/auth/AuthService_GetJwks.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: AuthService_GetJwks
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/auth/jwks
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
18
tests/bruno/auth/AuthService_LoginPassword.bru
Normal file
18
tests/bruno/auth/AuthService_LoginPassword.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: AuthService_LoginPassword
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/v1/auth/login
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"userId": "",
|
||||||
|
"password": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
18
tests/bruno/auth/AuthService_SetPassword.bru
Normal file
18
tests/bruno/auth/AuthService_SetPassword.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: AuthService_SetPassword
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/v1/auth/password
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"userId": "",
|
||||||
|
"password": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
11
tests/bruno/auth/View information about the service.bru
Normal file
11
tests/bruno/auth/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/auth/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
7
tests/bruno/auth/folder.bru
Normal file
7
tests/bruno/auth/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: auth
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
13
tests/bruno/bruno.json
Normal file
13
tests/bruno/bruno.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"version": "1",
|
||||||
|
"name": "Stocklet",
|
||||||
|
"type": "collection",
|
||||||
|
"ignore": [
|
||||||
|
"node_modules",
|
||||||
|
".git"
|
||||||
|
],
|
||||||
|
"presets": {
|
||||||
|
"requestType": "http",
|
||||||
|
"requestUrl": "http://localhost/"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
tests/bruno/collection.bru
Normal file
7
tests/bruno/collection.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: Stocklet
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: none
|
||||||
|
}
|
||||||
3
tests/bruno/environments/Environment 1.bru
Normal file
3
tests/bruno/environments/Environment 1.bru
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
vars {
|
||||||
|
baseUrl: http://localhost
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
15
tests/bruno/payment/PaymentService_ViewBalance.bru
Normal file
15
tests/bruno/payment/PaymentService_ViewBalance.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: PaymentService_ViewBalance
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/payment/balance/:customerId
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
customerId:
|
||||||
|
}
|
||||||
15
tests/bruno/payment/PaymentService_ViewTransaction.bru
Normal file
15
tests/bruno/payment/PaymentService_ViewTransaction.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: PaymentService_ViewTransaction
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/payment/transaction/:transactionId
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
transactionId:
|
||||||
|
}
|
||||||
11
tests/bruno/payment/View information about the service.bru
Normal file
11
tests/bruno/payment/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: View information about the service.
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/payment/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
7
tests/bruno/payment/folder.bru
Normal file
7
tests/bruno/payment/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: payment
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
15
tests/bruno/product/ProductService_ViewProduct.bru
Normal file
15
tests/bruno/product/ProductService_ViewProduct.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: ProductService_ViewProduct
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/product/:id
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
id:
|
||||||
|
}
|
||||||
11
tests/bruno/product/ProductService_ViewProducts.bru
Normal file
11
tests/bruno/product/ProductService_ViewProducts.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: ProductService_ViewProducts
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/product/list
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
11
tests/bruno/product/View information about the service.bru
Normal file
11
tests/bruno/product/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: View information about the service.
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/product/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
7
tests/bruno/product/folder.bru
Normal file
7
tests/bruno/product/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: product
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
15
tests/bruno/shipping/ShippingService_ViewShipment.bru
Normal file
15
tests/bruno/shipping/ShippingService_ViewShipment.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: ShippingService_ViewShipment
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/shipping/shipment/:shipmentId
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
shipmentId:
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: ShippingService_ViewShipmentManifest
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/shipping/shipment/:shipmentId/manifest
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
shipmentId:
|
||||||
|
}
|
||||||
11
tests/bruno/shipping/View information about the service.bru
Normal file
11
tests/bruno/shipping/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: View information about the service.
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/shipping/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
7
tests/bruno/shipping/folder.bru
Normal file
7
tests/bruno/shipping/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: shipping
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
18
tests/bruno/user/UserService_RegisterUser.bru
Normal file
18
tests/bruno/user/UserService_RegisterUser.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: UserService_RegisterUser
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/v1/user/register
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
firstName:
|
||||||
|
lastName:
|
||||||
|
email:
|
||||||
|
password:
|
||||||
|
}
|
||||||
15
tests/bruno/user/UserService_ViewUser.bru
Normal file
15
tests/bruno/user/UserService_ViewUser.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: UserService_ViewUser
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/user/users/:id
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
id:
|
||||||
|
}
|
||||||
11
tests/bruno/user/View information about the service.bru
Normal file
11
tests/bruno/user/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: View information about the service.
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/user/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
7
tests/bruno/user/folder.bru
Normal file
7
tests/bruno/user/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: user
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
11
tests/bruno/warehouse/View information about the service.bru
Normal file
11
tests/bruno/warehouse/View information about the service.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: View information about the service.
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/warehouse/service
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
15
tests/bruno/warehouse/WarehouseService_ViewProductStock.bru
Normal file
15
tests/bruno/warehouse/WarehouseService_ViewProductStock.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: WarehouseService_ViewProductStock
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/warehouse/product/:productId
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
productId:
|
||||||
|
}
|
||||||
15
tests/bruno/warehouse/WarehouseService_ViewReservation.bru
Normal file
15
tests/bruno/warehouse/WarehouseService_ViewReservation.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: WarehouseService_ViewReservation
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/v1/warehouse/reservation/:reservationId
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
reservationId:
|
||||||
|
}
|
||||||
7
tests/bruno/warehouse/folder.bru
Normal file
7
tests/bruno/warehouse/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
meta {
|
||||||
|
name: warehouse
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user