Repository to track changes & version control for Insomnia UNTP API Calls using built-in Insomnia Git Integration tool.
Follow the steps below to clone the repository in Insomnia:
- Create a new project in Insomnia and name it appropriately.
- Select Git Sync as the project type.
- Set the repository to
pyx-industries/insomnia-template-api-callsand the branch tomaster. - Clone the repository.
- A
developmentbranch needs to be created every time you're making updates to the Insomnia calls. - The
masterbranch is the main branch for tracking changes. - Before making any updates, ensure the repository is up to date by pulling the latest changes.
- Create a development branch using the naming format 'username-dev-001', incrementing the number with each new branch.
- Insomnia will automatically detect any modifications and display them in the bottom-left corner.
- After completing your updates, commit and push the changes to your development branch in the remote repository.
- Once you’re satisfied with the committed changes, raise a pull request and assign a reviewer for peer review, then request a merge into the master branch.
- Make a copy of the blank environment-template and rename it to match your environment (e.g. rbtp.pyx.io).

- Update the tokens using the values provided in the .env file stored in LastPass.
- To obtain the environment tokens, request BizCubed to share them securely via LastPass. (For BizCubed users, refer to the “Communicating Passwords to Clients” wiki for guidance on securely sharing LastPass items.)
- Select the environment accordingly at the top left corner.
- Then, depending on credential you want to issue, choose the corresponding folder (DPP/DFR/DCC/DTE).
- Click on the 002 - Issue Credential HTTP request and replace the value of “credentialSubject” with the JSON Instance that you have prepared.
- Issue the Insomnia calls:
- 001 - Issue Revocation Token - This is so that we can activate / revoke the VC - More details in https://uncefact.github.io/project-vckit/docs/get-started/api-server-get-started/basic-operations#issuing-a-status-vc
- 002 - Issue Credential - This is the API call that will issue the VC. The result won’t be human readable.
- 003 - Verify Credential - This is the API call to verify that the VC has been issued.
- 004 - Store Credential - This is to store the issued VC to the storage.
- 004.1 - View Credential - You don’t need to run this API call, it will just show a blank page in the Insomnia preview. This is to get the link to view the VC. You can get it by clicking on the arrow next to the Send button and click on “Generate Client Code”. Then, another window will show up with the full URL to view the VC.
- 005 - Register in Resolver. This is the API call to link your issued VC to a IDR. For the IDR path, it will be using the following value from your issued VC as identificationKey.
- 006 - Validate Resolve Registry. This API call is to validate that the VC has been successfully registered with the IDR link and is resolvable.