Reference for our RESTful API
Aplas provides a comprehensive API for modifying your software indexes. This provides you with the ability to integrate Aplas into your existing workflows (e.g. source-code workflow, or change management processes). This is one of the multiple methods for populating a software index.
Create an API key
- Within Aplas Studio, navigate to the config area.
- Select the API Keys section.
- Click to create a new key and specify a name.
- Once created, click Show to obtain the API key.
Access the API
- Review the API documentation
- Set a header of api_key to your secret.
- POST/PATCH/PUT all expect the content-type header to be set.
Example select query
curl -X GET 'https://api.aplas.com/api/v2/index/[your-index-id]/application/[your-application-id]' -H 'api_key:[your-api-key]'
Example create query
curl -X POST 'https://api.aplas.com/api/v2/index/[your-index-id]/application/' -H 'api_key:[your-api-key]' -H 'Content-Type: application/json' -d '{"id":"new_app","name":"New App"}'
Uploading an image to an application
Adding an image to an application requires 3 steps:
- POST to /api/v2/filespec to create a shared file reference. This will return a fileId that must be used for the following steps.
- POST your file data too /api/file/fileId.
- Update your application record with the fileId applied to the imageId field.