Skip to content
Snippets Groups Projects
Commit 3e082b4d authored by Gomez Goiri, Aitor's avatar Gomez Goiri, Aitor
Browse files

Adding Insomnia's design document so it can be easily synchronized

parent 4ae9d194
No related branches found
No related tags found
No related merge requests found
Showing
with 1251 additions and 0 deletions
_id: spc_6502b93cc453484ca8a3b7986aac4217
type: ApiSpec
parentId: wrk_7e99ffab4d8249c0a5c50fd612b42a4d
modified: 1666269640794
created: 1666269640794
fileName: Hypercog Traceblock API
contents: ""
contentType: yaml
_id: env_eedb02c65bc7da7315abb9ac09e73b58f2513ee3
type: Environment
parentId: wrk_7e99ffab4d8249c0a5c50fd612b42a4d
modified: 1666275072285
created: 1666269640894
name: Base Environment
data:
CHANNEL: hypercog
CHAINCODE: traceblock
NETWORK: main
BASE_URL: http://localhost:4040/api
BLOCKCHAIN_URL: "{{ _.BASE_URL }}/blockchain/channel/{{ _.CHANNEL
}}/chaincode/{{ _.CHAINCODE }}"
QUERY_URL: "{{ _.BLOCKCHAIN_URL }}/query"
INVOKE_URL: "{{ _.BLOCKCHAIN_URL }}/invoke"
USERNAME: sidenor
SECRET: secret
ORGANIZATION: hypercog.com
ACCESS_TOKEN: "{% response 'body', 'req_deb2d21463e0474eab977d08fac43530',
'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'no-history', 60 %}"
LAST_REGISTERED_ID: "{% response 'body', 'req_11dd3c34af7a4db5afe3b470d491e170',
'b64::JC5yZXN1bHQuaWQ=::46b', 'no-history', 60 %}"
dataPropertyOrder:
"&":
- CHANNEL
- CHAINCODE
- NETWORK
- BASE_URL
- BLOCKCHAIN_URL
- QUERY_URL
- INVOKE_URL
- USERNAME
- SECRET
- ORGANIZATION
- ACCESS_TOKEN
- LAST_REGISTERED_ID
color: null
isPrivate: false
metaSortKey: 1666269640894
_id: req_059500964b6a4ab99ccdb01c85565e5b
type: Request
parentId: fld_a1ee4cb6554b44059e75a566971c42fe
modified: 1666270757452
created: 1666269662419
url: "{{ _.QUERY_URL }}/hypercog-stats"
name: Hypercog-stats
description: Retrieves the allowed asset states in a format understandable by an
UI (e.g., the Dashboard with the _vue-select_ component).
method: POST
body:
mimeType: application/json
text: "{}"
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_60325e99498b47c4a83d8f4069d6246e
- name: Pragma
value: no-cache
id: pair_6986611fad9e4fc4b9ce1ff696664763
- name: Cache-Control
value: no-cache
id: pair_802966b4a51643c6b1fb560318e08a59
- name: Accept
value: application/json, text/plain, */*
id: pair_60bd3754b696453e97cb002439561171
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_3d2a767d54784712825ac0129b10b040
- name: Content-Type
value: application/json
id: pair_4e9fbecc33c5488ba835fd5bf1ffca7e
- name: Sec-GPC
value: "1"
id: pair_5d084b5f585e452a8788d09435703986
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_1f5e3395260446ef93955bd33288ca94
- name: Sec-Fetch-Site
value: same-site
id: pair_2b47f087a729498f8640edfe03922a11
- name: Sec-Fetch-Mode
value: cors
id: pair_25fe995293aa47ddbae8bb03d77555f3
- name: Sec-Fetch-Dest
value: empty
id: pair_8d8d1e5c6a224366bf06b2ed3683e574
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_daf100a232ec41c594c2ceefaa26222c
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_3c94f9bf8342404f97038b712a476f7a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136701.7812
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_08a878cf1eac4bb888a514435b1210bc
type: Request
parentId: fld_a1ee4cb6554b44059e75a566971c42fe
modified: 1666270734889
created: 1666269662414
url: "{{ _.INVOKE_URL }}/hypercog-reject-asset"
name: Hypercog-reject-asset
description: Retrieves the allowed asset states in a format understandable by an
UI (e.g., the Dashboard with the _vue-select_ component).
method: POST
body:
mimeType: application/json
text: >-
{
"id": "{{ _.LAST_REGISTERED_ID }}",
"bidder": "cement-company1-com:eDUwOTo6Q049dXNlcixPVT1jbGllbnQrT1U9b3JnMStPVT1kZXBhcnRtZW50MTo6Q049Y2EuY2VtZW50LWNvbXBhbnkxLmNvbSxPPWNlbWVudC1jb21wYW55MS5jb20sTD1SYWxlaWdoLFNUPU5vcnRoIENhcm9saW5hLEM9VVM="
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_60325e99498b47c4a83d8f4069d6246e
- name: Pragma
value: no-cache
id: pair_6986611fad9e4fc4b9ce1ff696664763
- name: Cache-Control
value: no-cache
id: pair_802966b4a51643c6b1fb560318e08a59
- name: Accept
value: application/json, text/plain, */*
id: pair_60bd3754b696453e97cb002439561171
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_3d2a767d54784712825ac0129b10b040
- name: Content-Type
value: application/json
id: pair_4e9fbecc33c5488ba835fd5bf1ffca7e
- name: Sec-GPC
value: "1"
id: pair_5d084b5f585e452a8788d09435703986
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_1f5e3395260446ef93955bd33288ca94
- name: Sec-Fetch-Site
value: same-site
id: pair_2b47f087a729498f8640edfe03922a11
- name: Sec-Fetch-Mode
value: cors
id: pair_25fe995293aa47ddbae8bb03d77555f3
- name: Sec-Fetch-Dest
value: empty
id: pair_8d8d1e5c6a224366bf06b2ed3683e574
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_daf100a232ec41c594c2ceefaa26222c
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_3c94f9bf8342404f97038b712a476f7a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136704.125
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_11dd3c34af7a4db5afe3b470d491e170
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666274805335
created: 1666269684755
url: "{{ _.INVOKE_URL }}/asset-register"
name: Asset-register
description: Creates an asset on the ledger.
method: POST
body:
mimeType: application/json
text: |-
{
"id": "asset-{% now 'millis', '' %}",
"type":"100304",
"fields": {
"name":"Concrete wall",
"description":"A wall made up of concrete",
"status": "slag"
},
"location": {
"desc": "K-tuin",
"warehouse": "",
"room": "",
"pack": "",
"coords": {
"lat": 43.254549946785744,
"lng": -2.9206378457675486,
"alt":null
}
},
"quantity": 2412,
"units": "kg"
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_a1f159b95693489e95dcf5366a67526a
- name: Pragma
value: no-cache
id: pair_e34a81ff9bab4792a416dea6893d291b
- name: Cache-Control
value: no-cache
id: pair_4fb5f5ad9ffd44258c958a28a70db7e1
- name: Accept
value: application/json, text/plain, */*
id: pair_fef57d2bec8e4f8184ac6fc51f6e3fe5
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_2050249b55284071b9b157c2f8408d62
- name: Content-Type
value: application/json
id: pair_9e7a9e3eaa8c4768a7a0b2e2ebf66fd5
- name: Sec-GPC
value: "1"
id: pair_f6bcb4b132e14d03a9a34752ea1a94e3
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_a1325bd77d214c0b82c5e3a849456442
- name: Sec-Fetch-Site
value: same-site
id: pair_714e99c3f1444587bac5b71527a881e3
- name: Sec-Fetch-Mode
value: cors
id: pair_eb9b21c9dffe4dd696c1fc458249b426
- name: Sec-Fetch-Dest
value: empty
id: pair_f4421251b8054690b720629348bd3cd4
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_02f44adec2854591b5e379dcfbd3bb46
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_58d3e86182424973995afb992d4e122b
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347899
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_1235f6a7a1b3458f9aebe24b9ca2f92a
type: Request
parentId: fld_a1ee4cb6554b44059e75a566971c42fe
modified: 1666270721906
created: 1666269662408
url: "{{ _.QUERY_URL }}/hypercog-list-bid-assets"
name: Hypercog-bid-asset-list
description: Retrieves the allowed asset states in a format understandable by an
UI (e.g., the Dashboard with the _vue-select_ component).
method: POST
body:
mimeType: application/json
text: "{}"
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_60325e99498b47c4a83d8f4069d6246e
- name: Pragma
value: no-cache
id: pair_6986611fad9e4fc4b9ce1ff696664763
- name: Cache-Control
value: no-cache
id: pair_802966b4a51643c6b1fb560318e08a59
- name: Accept
value: application/json, text/plain, */*
id: pair_60bd3754b696453e97cb002439561171
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_3d2a767d54784712825ac0129b10b040
- name: Content-Type
value: application/json
id: pair_4e9fbecc33c5488ba835fd5bf1ffca7e
- name: Sec-GPC
value: "1"
id: pair_5d084b5f585e452a8788d09435703986
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_1f5e3395260446ef93955bd33288ca94
- name: Sec-Fetch-Site
value: same-site
id: pair_2b47f087a729498f8640edfe03922a11
- name: Sec-Fetch-Mode
value: cors
id: pair_25fe995293aa47ddbae8bb03d77555f3
- name: Sec-Fetch-Dest
value: empty
id: pair_8d8d1e5c6a224366bf06b2ed3683e574
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_daf100a232ec41c594c2ceefaa26222c
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_3c94f9bf8342404f97038b712a476f7a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136713.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_13048b3ac3454f439eaa50647801589d
type: Request
parentId: fld_f86b78dea36a4987ad8bbd82f57fde4f
modified: 1666270522934
created: 1666269691431
url: "{{ _.QUERY_URL }}/barcode-create"
name: Barcode-create
description: Given an asset id, this method returns a barcode image representing that asset.
method: POST
body:
mimeType: application/json
text: |-
{
"id":"{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: User-Agent
value: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101
Firefox/87.0
id: pair_d5436f306a344088a4f53541c6840c08
- name: Accept
value: application/json, text/plain, */*
id: pair_e0361e77485a47bab828e4723437f785
- name: Accept-Language
value: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
id: pair_e57038cdaa8f404c94df5e2188fcd821
- name: Content-Type
value: application/json
id: pair_bce2f3b37bb94e9986febdd8e65a82c6
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_94fce40f8bc54a31882892fa68828788
- name: Connection
value: keep-alive
id: pair_6d5e69105158480489de5b60bac4de41
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_5035a8ddce6e49c8a16b78e2b73bb481
- name: Pragma
value: no-cache
id: pair_9fcebcc377fd46769dc300392cdc1c35
- name: Cache-Control
value: no-cache
id: pair_c05daa26ded841fcbea525d6b6616f27
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136376
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_169fa9e42bf949cc8f932970f5e4610a
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666269684773
created: 1666269684773
url: "{{ _.QUERY_URL }}/asset-owned-elements"
name: Asset-owned-elements (all)
description: |-
Returns all the assets which belong to the user's role.
Internally invokes _[rich-query](./dashboard.md#rich-query)_.
method: POST
body:
mimeType: application/json
text: "{}"
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_22de5d262aa64df490dfb28e3a4180ac
- name: Pragma
value: no-cache
id: pair_23048f7e1eb64b37954c330565b7223f
- name: Cache-Control
value: no-cache
id: pair_61e581b368ea4caa943467650d0670d7
- name: Accept
value: application/json, text/plain, */*
id: pair_012f63b7a3324c0987e0f896f09b3acb
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_fe986addc213469bb1b30e92a9e4ab49
- name: Content-Type
value: application/json
id: pair_4f6cff332b0d495da78f238114cfbcb8
- name: Sec-GPC
value: "1"
id: pair_44deda8519e34e80825bbe23be83ae56
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_3054624c15aa47ff9dd637b07fa13b1c
- name: Sec-Fetch-Site
value: same-site
id: pair_0c5d5eb932784ff5a80d08bafcca7221
- name: Sec-Fetch-Mode
value: cors
id: pair_960950d9df49416380614bcce1e29f65
- name: Sec-Fetch-Dest
value: empty
id: pair_5b803df71e8746bf864eb7eba414b8eb
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_5913c07ed54245628b34b3cc19cf9fb0
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_b3c1654b1ea74d6dbbc33e00fe62a899
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347986.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_2cd932973aff4a7aa860b4539c44d001
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666270584679
created: 1666269684765
url: "{{ _.INVOKE_URL }}/asset-archive"
name: Asset-archive
description: Deletes an asset marking it as archived.
method: POST
body:
mimeType: application/json
text: |-
{
"id":"{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_fbe54590cc874058a2446410a8efd91c
- name: Pragma
value: no-cache
id: pair_0bc20936545d4bd4b285be7fab1eb9fa
- name: Cache-Control
value: no-cache
id: pair_87d382de377b4639bc88af4e27d651c6
- name: Accept
value: application/json, text/plain, */*
id: pair_3b4732df6be249179f34156fad96818c
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_e7ef40593afd41a8b0643216e9e9c110
- name: Content-Type
value: application/json
id: pair_c58c61f742124dbd9a1856cff680b5b8
- name: Sec-GPC
value: "1"
id: pair_67f977d70b8f444d93dd17de223457e5
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_8ecf12189ac14d4a9a9353fcbd161b1c
- name: Sec-Fetch-Site
value: same-site
id: pair_2347418f9e5746b0a7628058a0baa9f9
- name: Sec-Fetch-Mode
value: cors
id: pair_8caf74747acc433682606184ad3972bb
- name: Sec-Fetch-Dest
value: empty
id: pair_06839109fd6a4e5ca3f999de65fec0ca
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_32d9e40181404b39bc12d9582747b4fd
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_d4a89c9bf6e5428eab30f4f0059d050d
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728348149
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_31219ceb06914c68bad84c68ca193e3b
type: Request
parentId: fld_fbebe381dd8249ba8f8671533e6055d6
modified: 1666270503441
created: 1666269675597
url: "{{ _.BASE_URL }}/user/sidenor"
name: Modify user
description: Creates a new user in the current organization. It only works for
users with admin role.
method: PUT
body:
mimeType: application/json
text: |-
{
"secret": "secret",
"organization": "{{ _.ORGANIZATION }}",
"affiliation": "org1.department1",
"attrs": [
{ "name": "email", "value": "sidenor@sidenor.com" },
{ "name": "role", "value": "supplier" },
{ "name": "org", "value": "sidenor.com" },
{ "name": "language", "value": "es" }
]
}
parameters: []
headers:
- name: Accept
value: application/json
id: pair_5491ffa8c6dc4d28abb63c713ca1733d
- name: Content-Type
value: application/json
id: pair_8aeb4343365641378873d6eeb5527f93
authentication:
type: bearer
token: "{{ _.ADMIN_TOKEN }}"
metaSortKey: -1617717136651
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_31b302d8a9134c6f8e73bf46c31c8ce2
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666270689107
created: 1666269684780
url: "{{ _.INVOKE_URL }}/asset-transfer"
name: Asset-transfer
description: Transfers the asset ownership (i.e., asset owner is changed).
method: POST
body:
mimeType: application/json
text: |-
{
"id": "{{ _.LAST_REGISTERED_ID }}",
"newOrg": "sidenor.com",
"newRole": "user",
"location": {
"coords": {
"lat": 43.29901385713826,
"lng": -2.9712893187839096,
"alt": null
},
"desc": "A place"
}
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_9ef6e6d5ee894109ab3205915c1b95aa
- name: Pragma
value: no-cache
id: pair_1b33185a70a746579917686efb019953
- name: Cache-Control
value: no-cache
id: pair_6b0479eae9a340268f507fb79616f70b
- name: Accept
value: application/json, text/plain, */*
id: pair_22f7a00903794d7aad3d9e78f8f605c1
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_44b929d53cfe4a96a87095208f8d5c65
- name: Content-Type
value: application/json
id: pair_23ec75d42f514a7b80ea1e7df5ca9285
- name: Sec-GPC
value: "1"
id: pair_e28d221efe7742bfa10a5a5815d72b4c
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_10022d7b36e347c78b8ebf2b110b290c
disabled: false
- name: Referer
value: https://lab.blockchain.tecnalia.com
id: pair_cdd8100aa25541ff9563f57c4e43c6ae
disabled: false
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_5bb7ed42ca84489eb5c9f00bc7dfcf3a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347774
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_3acc8d24b34f437e9f70e491955f3492
type: Request
parentId: fld_af1d176ad23540f8bace3c55e4939bcb
modified: 1666269698104
created: 1666269698104
url: "{{ _.QUERY_URL }}/dashboard-asset-allowed-states"
name: Dashboard-asset-allowed-states
description: Retrieves the allowed asset states in a format understandable by an
UI (e.g., the Dashboard with the _vue-select_ component).
method: POST
body:
mimeType: application/json
text: "{}"
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_60325e99498b47c4a83d8f4069d6246e
- name: Pragma
value: no-cache
id: pair_6986611fad9e4fc4b9ce1ff696664763
- name: Cache-Control
value: no-cache
id: pair_802966b4a51643c6b1fb560318e08a59
- name: Accept
value: application/json, text/plain, */*
id: pair_60bd3754b696453e97cb002439561171
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_3d2a767d54784712825ac0129b10b040
- name: Content-Type
value: application/json
id: pair_4e9fbecc33c5488ba835fd5bf1ffca7e
- name: Sec-GPC
value: "1"
id: pair_5d084b5f585e452a8788d09435703986
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_1f5e3395260446ef93955bd33288ca94
- name: Sec-Fetch-Site
value: same-site
id: pair_2b47f087a729498f8640edfe03922a11
- name: Sec-Fetch-Mode
value: cors
id: pair_25fe995293aa47ddbae8bb03d77555f3
- name: Sec-Fetch-Dest
value: empty
id: pair_8d8d1e5c6a224366bf06b2ed3683e574
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_daf100a232ec41c594c2ceefaa26222c
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_3c94f9bf8342404f97038b712a476f7a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136726
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_46962f99d2654b06b48cae88e4c87ae9
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666270699060
created: 1666269684769
url: "{{ _.INVOKE_URL }}/asset-update"
name: Asset-update
description: >-
Modifies the state of an asset.
If some fields are not provided, values form the latest version will be copied.
Ownership and creation date cannot be updated with this operation.
method: POST
body:
mimeType: application/json
text: |-
{
"id": "{{ _.LAST_REGISTERED_ID }}",
"type": "100304",
"fields": {
"name":"Concrete wall",
"description":"A wall made up of concrete",
"status": "certified"
},
"quantity": 242,
"units": "grams"
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_a1f159b95693489e95dcf5366a67526a
- name: Pragma
value: no-cache
id: pair_e34a81ff9bab4792a416dea6893d291b
- name: Cache-Control
value: no-cache
id: pair_4fb5f5ad9ffd44258c958a28a70db7e1
- name: Accept
value: application/json, text/plain, */*
id: pair_fef57d2bec8e4f8184ac6fc51f6e3fe5
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_2050249b55284071b9b157c2f8408d62
- name: Content-Type
value: application/json
id: pair_9e7a9e3eaa8c4768a7a0b2e2ebf66fd5
- name: Sec-GPC
value: "1"
id: pair_f6bcb4b132e14d03a9a34752ea1a94e3
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_a1325bd77d214c0b82c5e3a849456442
- name: Sec-Fetch-Site
value: same-site
id: pair_714e99c3f1444587bac5b71527a881e3
- name: Sec-Fetch-Mode
value: cors
id: pair_eb9b21c9dffe4dd696c1fc458249b426
- name: Sec-Fetch-Dest
value: empty
id: pair_f4421251b8054690b720629348bd3cd4
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_02f44adec2854591b5e379dcfbd3bb46
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_58d3e86182424973995afb992d4e122b
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347749
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_46b0e232ffac4647aef4f55cc4c1273b
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666275491337
created: 1666269684771
url: "{{ _.INVOKE_URL }}/asset-split"
name: Asset-split
description: |-
The _asset-split_ operation generates as many assets as requested.
That is, decomposes one asset into N new assets.
All those new assets are linked to the parent.
method: POST
body:
mimeType: application/json
text: |-
{
"id": "{{ _.LAST_REGISTERED_ID }}",
"splitConfig": {
"archiveOld": false,
"bidirectional": true,
"childcount": 2,
"proposedIds":[],
"base": {
"type": "1908",
"fields": {
"status": "slag"
}
}
}
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_d690a644add14e26b525abcd41e1a093
- name: Pragma
value: no-cache
id: pair_79d8602821aa494485966df578343123
- name: Cache-Control
value: no-cache
id: pair_4bdc5f05527e40a8b38b7c6df86aca76
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/90.0.4430.93 Safari/537.36
id: pair_83f17c7a5825409fbd2e749b0424bd2f
- name: content-type
value: application/json
id: pair_712b2c65b8ba46f382758e7bb075d082
- name: Accept
value: "*/*"
id: pair_74ee886a8b6b4005a05f81ce7fff1994
- name: Sec-GPC
value: "1"
id: pair_1a2811a1481543e8ae9ba64dfef608ed
- name: Origin
value: http://localhost:8080
id: pair_a4807c71a0cf496ba6feeb4a78b4a095
- name: Sec-Fetch-Site
value: same-site
id: pair_06c9e7fcfb434eb09a4ed65743c7b66f
- name: Sec-Fetch-Mode
value: cors
id: pair_dddc06118e574ebb9f26697c9f5f45ae
- name: Sec-Fetch-Dest
value: empty
id: pair_5efbd6e05da84267b97227c8091f80d0
- name: Referer
value: http://localhost:8080/
id: pair_a364e3cc7e3e46c785dfaad6e5d63d1d
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_6f7b68a724164ad6baefcfe0be04930f
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347849
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_5ddc3ba847e4427e9221f7fd3ecd56e2
type: Request
parentId: fld_f86b78dea36a4987ad8bbd82f57fde4f
modified: 1666270542106
created: 1666269691429
url: "{{ _.QUERY_URL }}/qr-create"
name: Qr-create
description: Given an asset id, this method returns a QR image representing that asset.
method: POST
body:
mimeType: application/json
text: |-
{
"id":"{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: User-Agent
value: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101
Firefox/87.0
id: pair_71c6fbe74d4f444c9a3ff7c720576f05
- name: Accept
value: application/json, text/plain, */*
id: pair_9f2af4bdf6ec43f6a446870712153fbe
- name: Accept-Language
value: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
id: pair_1772424ad73846d38bb209f5e8be371e
- name: Content-Type
value: application/json
id: pair_444cf6b0d61a4f5eb3dde7a95fa30c88
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_c57404a389d34e97b398929a3ec84a46
- name: Connection
value: keep-alive
id: pair_8de14dbb99014e34925c856a34f13c0b
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_28aa62388c064986a0936c85be626a37
- name: Pragma
value: no-cache
id: pair_a7ce908dc1704d7798b7b2b0df440c0b
- name: Cache-Control
value: no-cache
id: pair_f88f91d7654a404293bb21e18e395bf4
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136276
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_5ef1268415b14c0ba7b2a4bf1eb37ee5
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666270641761
created: 1666269684759
url: "{{ _.QUERY_URL }}/asset-read"
name: Asset-read
description: Reads the requested asset.
method: POST
body:
mimeType: application/json
text: |-
{
"id":"{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_b36c9073668042808cc3304f6ec0be8e
- name: Pragma
value: no-cache
id: pair_cfe4696966ba4aa2aabca2f596cecf29
- name: Cache-Control
value: no-cache
id: pair_6630034f957c40c69ff7d8baeee51319
- name: Accept
value: application/json, text/plain, */*
id: pair_bebe7e76f0874ba7aed42f8187d3c0fc
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_cd9671ec935742e692797d871b5df4bc
- name: Content-Type
value: application/json
id: pair_7c53fbf88ff74c80ae6db02021933782
- name: Sec-GPC
value: "1"
id: pair_169133f085df49ab8eb39e166536a865
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_d20cf0b4436844b682c5338ed4490658
- name: Sec-Fetch-Site
value: same-site
id: pair_737e6f6b62c8447c8964df125bce9d21
- name: Sec-Fetch-Mode
value: cors
id: pair_39c1617f1e5148d29148d3d7683141d4
- name: Sec-Fetch-Dest
value: empty
id: pair_3e53c4de80a340e8ab10cbc052e93c4d
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_b154a3132be74eb2915b1c5b082a927b
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_d257d99649604d5784a0c733604e487a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728347949
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_7b2fa560e45d49029ff252d80c4d0057
type: Request
parentId: fld_f86b78dea36a4987ad8bbd82f57fde4f
modified: 1666270530680
created: 1666269691439
url: "{{ _.QUERY_URL }}/barcode-resolve"
name: Barcode-resolve
description: >-
Given barcode encoded data, check if the item is valid or not.
In theory, if secret mode is enabled _barcodeData_ should contain encrypted data and otherwise it should contain the raw asset id.
However, the implementation is always the latter.
method: POST
body:
mimeType: application/json
text: |-
{
"barcode": "{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: User-Agent
value: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101
Firefox/87.0
id: pair_d5436f306a344088a4f53541c6840c08
- name: Accept
value: application/json, text/plain, */*
id: pair_e0361e77485a47bab828e4723437f785
- name: Accept-Language
value: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
id: pair_e57038cdaa8f404c94df5e2188fcd821
- name: Content-Type
value: application/json
id: pair_bce2f3b37bb94e9986febdd8e65a82c6
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_94fce40f8bc54a31882892fa68828788
- name: Connection
value: keep-alive
id: pair_6d5e69105158480489de5b60bac4de41
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_5035a8ddce6e49c8a16b78e2b73bb481
- name: Pragma
value: no-cache
id: pair_9fcebcc377fd46769dc300392cdc1c35
- name: Cache-Control
value: no-cache
id: pair_c05daa26ded841fcbea525d6b6616f27
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136363.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_7c1b675c233847fbae829e2577a30ce9
type: Request
parentId: fld_f86b78dea36a4987ad8bbd82f57fde4f
modified: 1666269691437
created: 1666269691437
url: "{{ _.QUERY_URL }}/random-string"
name: Random string
description: Same as _random-uuid_ with a different return type.
method: POST
body:
mimeType: application/json
text: "{}"
parameters: []
headers:
- name: User-Agent
value: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101
Firefox/87.0
id: pair_71c6fbe74d4f444c9a3ff7c720576f05
- name: Accept
value: application/json, text/plain, */*
id: pair_9f2af4bdf6ec43f6a446870712153fbe
- name: Accept-Language
value: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
id: pair_1772424ad73846d38bb209f5e8be371e
- name: Content-Type
value: application/json
id: pair_444cf6b0d61a4f5eb3dde7a95fa30c88
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_c57404a389d34e97b398929a3ec84a46
- name: Connection
value: keep-alive
id: pair_8de14dbb99014e34925c856a34f13c0b
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_28aa62388c064986a0936c85be626a37
- name: Pragma
value: no-cache
id: pair_a7ce908dc1704d7798b7b2b0df440c0b
- name: Cache-Control
value: no-cache
id: pair_f88f91d7654a404293bb21e18e395bf4
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136326
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_80294abc3a5f4bcd972b436c41bf35ac
type: Request
parentId: fld_8cbbcd258c384663a510054191331d7e
modified: 1666270590324
created: 1666269684763
url: "{{ _.QUERY_URL }}/asset-history"
name: Asset-history
description: Retrieves the history of a given asset with all its past changes.
method: POST
body:
mimeType: application/json
text: |-
{
"id":"{{ _.LAST_REGISTERED_ID }}"
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_54c9261298454330b4774961dcda47e7
- name: Pragma
value: no-cache
id: pair_4dd1306d29e24eb6b6bf0ef5a99f8c47
- name: Cache-Control
value: no-cache
id: pair_43f65de2040f4e4d819e112806de7541
- name: Accept
value: application/json, text/plain, */*
id: pair_80cdcbc8743e4f3fa1105844fa2f6fdf
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_d6fc443d9d7a4182ad0a81f2e1fa4074
- name: Content-Type
value: application/json
id: pair_1839f3da58c5480db576200f33a5c5df
- name: Sec-GPC
value: "1"
id: pair_0179d3cc53ec43ae89d2513d662f2e33
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_f80ebe11e5114fd09040ae1e26ee2479
- name: Sec-Fetch-Site
value: same-site
id: pair_4a2fe840b3824b18a156e2d8a66694b4
- name: Sec-Fetch-Mode
value: cors
id: pair_f599595014754fc69d5a862454e56958
- name: Sec-Fetch-Dest
value: empty
id: pair_3017fd3e246e40d68b2739a44344ccbe
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_d7aa6c729f824dcab65e3157a5382e0b
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_73eba2bb47d249aca02e86d269447dfb
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617728348124
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_id: req_8aa1f7d2230e4d08b67b35136d7e971b
type: Request
parentId: fld_a1ee4cb6554b44059e75a566971c42fe
modified: 1666270712082
created: 1666269662411
url: "{{ _.INVOKE_URL }}/hypercog-bid-asset"
name: Hypercog-bid-asset
description: Retrieves the allowed asset states in a format understandable by an
UI (e.g., the Dashboard with the _vue-select_ component).
method: POST
body:
mimeType: application/json
text: |-
{
"id": "{{ _.LAST_REGISTERED_ID }}",
"bid": {
"quantity": 11,
"price": 3
}
}
parameters: []
headers:
- name: Connection
value: keep-alive
id: pair_60325e99498b47c4a83d8f4069d6246e
- name: Pragma
value: no-cache
id: pair_6986611fad9e4fc4b9ce1ff696664763
- name: Cache-Control
value: no-cache
id: pair_802966b4a51643c6b1fb560318e08a59
- name: Accept
value: application/json, text/plain, */*
id: pair_60bd3754b696453e97cb002439561171
- name: User-Agent
value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/89.0.4389.114 Safari/537.36
id: pair_3d2a767d54784712825ac0129b10b040
- name: Content-Type
value: application/json
id: pair_4e9fbecc33c5488ba835fd5bf1ffca7e
- name: Sec-GPC
value: "1"
id: pair_5d084b5f585e452a8788d09435703986
- name: Origin
value: https://lab.blockchain.tecnalia.com
id: pair_1f5e3395260446ef93955bd33288ca94
- name: Sec-Fetch-Site
value: same-site
id: pair_2b47f087a729498f8640edfe03922a11
- name: Sec-Fetch-Mode
value: cors
id: pair_25fe995293aa47ddbae8bb03d77555f3
- name: Sec-Fetch-Dest
value: empty
id: pair_8d8d1e5c6a224366bf06b2ed3683e574
- name: Referer
value: https://lab.blockchain.tecnalia.com/
id: pair_daf100a232ec41c594c2ceefaa26222c
- name: Accept-Language
value: es-ES,es;q=0.9,en-US;q=0.8,en-GB;q=0.7,en;q=0.6
id: pair_3c94f9bf8342404f97038b712a476f7a
authentication:
type: bearer
token: "{{ _.ACCESS_TOKEN }}"
metaSortKey: -1617717136707.25
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment