Bruno API client

This commit is contained in:
Dita Aji Pratama 2025-01-16 11:53:23 +07:00
parent 607ad3f6b1
commit 4edf86a866
16 changed files with 263 additions and 0 deletions

5
bruno/bruno.json Normal file
View File

@ -0,0 +1,5 @@
{
"version": "1",
"name": "invlab",
"type": "collection"
}

View File

@ -0,0 +1,21 @@
meta {
name: Inventory Add
type: http
seq: 3
}
post {
url: http://localhost:11000/api/invlab/inventory/add
body: json
auth: none
}
body:json {
{
"item":1,
"flow":"sell",
"when":"2025-01-02 14:56:45",
"qty":2,
"note":null
}
}

View File

@ -0,0 +1,15 @@
meta {
name: Inventory Detail
type: http
seq: 2
}
post {
url: http://localhost:11000/api/invlab/inventory/detail
body: json
auth: none
}
body:json {
{"id":1}
}

View File

@ -0,0 +1,22 @@
meta {
name: Inventory Edit
type: http
seq: 4
}
post {
url: http://localhost:11000/api/invlab/inventory/edit
body: json
auth: none
}
body:json {
{
"id":6,
"item":1,
"flow":"sell",
"when":"2025-01-02 14:56:45",
"qty":2,
"note":null
}
}

View File

@ -0,0 +1,15 @@
meta {
name: Inventory List
type: http
seq: 1
}
post {
url: http://localhost:11000/api/invlab/inventory/list
body: json
auth: none
}
body:json {
{}
}

View File

@ -0,0 +1,15 @@
meta {
name: Inventory Remove
type: http
seq: 5
}
post {
url: http://localhost:11000/api/invlab/inventory/remove
body: json
auth: none
}
body:json {
{"id":3}
}

15
bruno/item/Item Add.bru Normal file
View File

@ -0,0 +1,15 @@
meta {
name: Item Add
type: http
seq: 3
}
post {
url: http://localhost:11000/api/invlab/item/add
body: json
auth: none
}
body:json {
{"name":"Card holder wallet"}
}

View File

@ -0,0 +1,15 @@
meta {
name: Item Detail
type: http
seq: 2
}
post {
url: http://localhost:11000/api/invlab/item/detail
body: json
auth: none
}
body:json {
{"id":2}
}

18
bruno/item/Item Edit.bru Normal file
View File

@ -0,0 +1,18 @@
meta {
name: Item Edit
type: http
seq: 4
}
post {
url: http://localhost:11000/api/invlab/item/edit
body: json
auth: none
}
body:json {
{
"id":3,
"name":"Card holder"
}
}

15
bruno/item/Item List.bru Normal file
View File

@ -0,0 +1,15 @@
meta {
name: Item List
type: http
seq: 1
}
post {
url: http://localhost:11000/api/invlab/item/list
body: json
auth: none
}
body:json {
{}
}

View File

@ -0,0 +1,17 @@
meta {
name: Item Remove
type: http
seq: 5
}
post {
url: http://localhost:11000/api/invlab/item/remove
body: json
auth: none
}
body:json {
{
"id":3
}
}

21
bruno/price/Price Add.bru Normal file
View File

@ -0,0 +1,21 @@
meta {
name: Price Add
type: http
seq: 3
}
post {
url: http://localhost:11000/api/invlab/price/add
body: json
auth: none
}
body:json {
{
"item":2,
"type":"sell",
"currency":"IDR",
"value":3600000,
"periods":"2025-01-01 18:32:35"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: Price Detail
type: http
seq: 2
}
post {
url: http://localhost:11000/api/invlab/price/detail
body: json
auth: none
}
body:json {
{"id":5}
}

View File

@ -0,0 +1,22 @@
meta {
name: Price Edit
type: http
seq: 4
}
post {
url: http://localhost:11000/api/invlab/price/edit
body: json
auth: none
}
body:json {
{
"id":5,
"item":2,
"type":"sell",
"currency":"IDR",
"value":999999,
"periods":"2025-01-01 18:32:35"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: Price List
type: http
seq: 1
}
post {
url: http://localhost:11000/api/invlab/price/list
body: json
auth: none
}
body:json {
{}
}

View File

@ -0,0 +1,17 @@
meta {
name: Price Remove
type: http
seq: 5
}
post {
url: http://localhost:11000/api/invlab/price/remove
body: json
auth: none
}
body:json {
{
"id":5
}
}