You can create assets on omniChain in a number of ways:
- Using admin interface.
- Using omniSite custom page.
- Using Omnibasis API.
There are a number of steps you need to take create asset using Omnibasis API.
Step 1: Get Asset Definition
Note: If loginRequired set to true, user needs to be login to submit the asset. You need to provide login information via Authorization: Bearer in request header.
Note: If passwordRequired set to true, you need to submit the password to get asset definition.
Step 2: Parse asset template
Asset template return in the Step 1 will be under form. Template is JSON object. You will need to parse all the component to identify the fields required for submission.
Step 3: Submit the asset
Step 4: Create Asset Workflow
Depending on your application workflow, you can use return values to display the message, or redirect to the next page in workflow.