feat: base bruno routes

generated from OpenAPI v3 spec
This commit is contained in:
2025-09-29 22:58:14 +01:00
parent 07fe77f05a
commit 26d5c96841
35 changed files with 396 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ A full deployment will, in the nature of microservices being independent (etc),
### 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).

View File

View File

@@ -0,0 +1,11 @@
meta {
name: AuthService_GetJwks
type: http
seq: 1
}
get {
url: {{baseUrl}}/v1/auth/jwks
body: none
auth: inherit
}

View 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": ""
}
}

View 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": ""
}
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: auth
}
auth {
mode: inherit
}

13
tests/bruno/bruno.json Normal file
View File

@@ -0,0 +1,13 @@
{
"version": "1",
"name": "Stocklet",
"type": "collection",
"ignore": [
"node_modules",
".git"
],
"presets": {
"requestType": "http",
"requestUrl": "http://localhost/"
}
}

View File

@@ -0,0 +1,7 @@
meta {
name: Stocklet
}
auth {
mode: none
}

View File

@@ -0,0 +1,3 @@
vars {
baseUrl: http://localhost
}

View File

@@ -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:
}

View 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 {
{}
}

View 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:
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: order
}
auth {
mode: inherit
}

View 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:
}

View 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:
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: payment
}
auth {
mode: inherit
}

View 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:
}

View File

@@ -0,0 +1,11 @@
meta {
name: ProductService_ViewProducts
type: http
seq: 1
}
get {
url: {{baseUrl}}/v1/product/list
body: none
auth: inherit
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: product
}
auth {
mode: inherit
}

View 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:
}

View File

@@ -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:
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: shipping
}
auth {
mode: inherit
}

View 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:
}

View 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:
}

View 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
}

View File

@@ -0,0 +1,7 @@
meta {
name: user
}
auth {
mode: inherit
}

View 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
}

View 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:
}

View 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:
}

View File

@@ -0,0 +1,7 @@
meta {
name: warehouse
}
auth {
mode: inherit
}