Demo Using APIs and UI
1. Login as a User
1.1 Get the list of policies.
Displaying list of policies
GET
/api/v1/policies/
1.2 In the policy config there is a root block which is the top of the structure
1.3 Request the config for the root block
Requesting configuration of root block
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/97379c43-2bce-4e67-9817-a79fbad3e53d
1.4 Root block contains other blocks in the 'blocks' field. Request the config for the block by the block ID. Recursively repeat this operation for all contained blocks in order to construct all components.
Requesting configuration of block by block ID
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/bb342b37-8bb6-4595-93fc-98fd63a23c16
1.5 At present only PolicyRolesBlock is available to the user. Select the "INSTALLER" role.
Registering the role as
POST
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/bb342b37-8bb6-4595-93fc-98fd63a23c16
Request the role
Path Parameters
role*
String
INSTALLER
1.6 Request the root block and all contained blocks.
1.6.1 Requesting InterfaceStepBlock
Requesting InterfaceStepBlock
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/97379c43-2bce-4e67-9817-a79fbad3e53d
1.6.2 Requesting requestVCDocumentBlock
Request requestVCDocumentBlock
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/9d98e2fd-6d2b-4152-b48c-cf10eb4f1298
1.6.3 Requesting Installer Details
Requesting Installer Details
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/53dac8a9-b480-457e-920a-e4d4c653bfbe
1.7 Create json according to the schema and send to the requestVCDocumentBlock
Creating JSON and sending it to requestVCDocumentBlock
POST
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/53dac8a9-b480-457e-920a-e4d4c653bfbe
Request Body
field0*
String
Applicant legal name
field1*
String
Balance sheet total for last financial year in USD
field2*
String
CEO or general Manager passport number
field3*
String
Corporate registration number or passport number
field4*
String
Country
field5*
String
Date
field6*
String
Legal Status
field7*
String
Main business ie food retailer
field8*
String
Name of CEO or General Manager
field9*
Number
Number of employees
field10*
String
Postal zip code
field11*
String
Primary contact email
field12*
String
Primary contact name
field13*
Number
primary contact telephone
field14*
String
Registered address line 1
field15*
String
Role requested under this application ie iREC participant and or registrant
field16*
URL
website URL
field17*
Number
Years of registration
type*
token
0d4b2c1f-dc7a-47f5-a9ab-238d190f6769&1.0.0
@context*
array
["https://ipfs.io/ipfs/bafkreihj5c6npywzkfx2pylalh5f23lhy2ogofxhdqctvpoh3gczwtzjg4"]
1.8 Request the root block and all contained blocks again.
1.8.1 Requesting InterfaceStepBlock
Requesting InterfaceStepBlock
GET
/api/v1/policies/621376c8e6763a0014fb0de4/blocks/97379c43-2bce-4e67-9817-a79fbad3e53d