Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions bruno/collections/Rafiki/POS Service APIs/Create Merchant.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Create Merchant
type: http
seq: 1
}

post {
url: http://localhost:3008/merchants
body: json
auth: inherit
}

body:json {
{
"name": "Test Merchant"
}
}

script:post-response {
const body = res.getBody()

bru.setEnvVar('merchantId', body.id)
}
20 changes: 20 additions & 0 deletions bruno/collections/Rafiki/POS Service APIs/Register POS Device.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Register POS Device
type: http
seq: 2
}

post {
url: http://localhost:3008/merchants/{{merchantId}}/devices
body: json
auth: inherit
}

body:json {
{
"deviceName": "Test POS Device 3",
"publicKey": "test_public_key",
"algorithm": "ecdsa-p256-sha256",
"walletAddress": "https://cloud-nine-wallet-backend/accounts/gfranklin"
}
}
8 changes: 8 additions & 0 deletions bruno/collections/Rafiki/POS Service APIs/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
meta {
name: POS Service APIs
seq: 8
}

auth {
mode: inherit
}
Loading