diff --git a/bruno/bruno.json b/bruno/bruno.json new file mode 100644 index 0000000..7b4a2b5 --- /dev/null +++ b/bruno/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "invlab", + "type": "collection" +} \ No newline at end of file diff --git a/bruno/inventory/Inventory Add.bru b/bruno/inventory/Inventory Add.bru new file mode 100644 index 0000000..ec88b49 --- /dev/null +++ b/bruno/inventory/Inventory Add.bru @@ -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 + } +} diff --git a/bruno/inventory/Inventory Detail.bru b/bruno/inventory/Inventory Detail.bru new file mode 100644 index 0000000..445da49 --- /dev/null +++ b/bruno/inventory/Inventory Detail.bru @@ -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} +} diff --git a/bruno/inventory/Inventory Edit.bru b/bruno/inventory/Inventory Edit.bru new file mode 100644 index 0000000..b3ae6a3 --- /dev/null +++ b/bruno/inventory/Inventory Edit.bru @@ -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 + } +} diff --git a/bruno/inventory/Inventory List.bru b/bruno/inventory/Inventory List.bru new file mode 100644 index 0000000..5b6e367 --- /dev/null +++ b/bruno/inventory/Inventory List.bru @@ -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 { + {} +} diff --git a/bruno/inventory/Inventory Remove.bru b/bruno/inventory/Inventory Remove.bru new file mode 100644 index 0000000..6853ef7 --- /dev/null +++ b/bruno/inventory/Inventory Remove.bru @@ -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} +} diff --git a/bruno/item/Item Add.bru b/bruno/item/Item Add.bru new file mode 100644 index 0000000..11a76f7 --- /dev/null +++ b/bruno/item/Item Add.bru @@ -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"} +} diff --git a/bruno/item/Item Detail.bru b/bruno/item/Item Detail.bru new file mode 100644 index 0000000..93108ac --- /dev/null +++ b/bruno/item/Item Detail.bru @@ -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} +} diff --git a/bruno/item/Item Edit.bru b/bruno/item/Item Edit.bru new file mode 100644 index 0000000..f68f650 --- /dev/null +++ b/bruno/item/Item Edit.bru @@ -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" + } +} diff --git a/bruno/item/Item List.bru b/bruno/item/Item List.bru new file mode 100644 index 0000000..7bd5a56 --- /dev/null +++ b/bruno/item/Item List.bru @@ -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 { + {} +} diff --git a/bruno/item/Item Remove.bru b/bruno/item/Item Remove.bru new file mode 100644 index 0000000..65d4082 --- /dev/null +++ b/bruno/item/Item Remove.bru @@ -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 + } +} diff --git a/bruno/price/Price Add.bru b/bruno/price/Price Add.bru new file mode 100644 index 0000000..392803b --- /dev/null +++ b/bruno/price/Price Add.bru @@ -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" + } +} diff --git a/bruno/price/Price Detail.bru b/bruno/price/Price Detail.bru new file mode 100644 index 0000000..352ce30 --- /dev/null +++ b/bruno/price/Price Detail.bru @@ -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} +} diff --git a/bruno/price/Price Edit.bru b/bruno/price/Price Edit.bru new file mode 100644 index 0000000..0576c03 --- /dev/null +++ b/bruno/price/Price Edit.bru @@ -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" + } +} diff --git a/bruno/price/Price List.bru b/bruno/price/Price List.bru new file mode 100644 index 0000000..8404c98 --- /dev/null +++ b/bruno/price/Price List.bru @@ -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 { + {} +} diff --git a/bruno/price/Price Remove.bru b/bruno/price/Price Remove.bru new file mode 100644 index 0000000..33590c0 --- /dev/null +++ b/bruno/price/Price Remove.bru @@ -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 + } +}