In APS1 we had resource script to collect resoure usage and verification scipt to validate user input and return suggested values, how it should be done in APS2?


Verification script:

In APS2 application interface is designed by the packager itself, it's written in JavaScript using Dojo library, you can use AJAX to contact endpoint to verify the data.

Resouce script:

In APS1 there was one-way communication only (APS controller asking application to provision/change resource, verify data, collect usage), now application can update application services without APS controller initiating it. One of the possible scenarios is setting up a scheduled task on endpoint that would collect usage from backend and update resource.

The same can be done using updateResource() method in aps-php-runtime.

Internal content