Reusable Components
Number of APIs: 2
Get Started
[]
1. Fork the collection: Fork this example collection to your own workspace.
1. Create an API definition: [Create a new boilerplate API definition] in your own workspace, and make sure to include the code from Rows 38 to 49 as seen in [this example]
1. Define variables:
- Get the ID
of the API under the info icon on the right side of the API from the previous step, and save as a collection variable.
- Get your Qodex API key in your Qodex settings, and save a collection variable.
- Store the source code for this YAML parser in a [global variable] called yaml-js
.
1. Confirm scripts work as expected: Send the call Using a script
to see the components in action.
1. Customize your own components: Update the API to customize your functions, or add new ones.