REST
Last updated
Last updated
Naming Convention
As we want to keep the naming of the Universal Modules the same across all Apps which support them, the Universal Module should keep the following guidelines.
Module label: Make an API Call
Module description: Performs an arbitrary authorized API call.
URL Parameter
Expected input from users should start with /
(for example /tasks
) so users can copy-paste the endpoint path from the service documentation.
If the API has multiple versions of API available, the user should be allowed to use any of them. The URL set in the Universal module should end before the version.
Set the correct URL in the "help" and add a working endpoint example.
Communication
Mappable parameters
Even when the URL in Communication ends with /
before {{parameters.url}} we ask users to use /
in the URL because it is automatically removed.
When your app requires specifying scopes to access different groups of endpoints, you need to tweak the connection code a bit to make it work correctly with the Universal Module. Here's how:
Add a new advanced parameter called scopes
to the connection parameters.
In the authorize
part of the connection, merge the original scopes with additional scopes added by the parameter from the previous step.
Now when you want to use Universal Module with scopes that have not been granted to the connection previously, you can create a new connection and request those additional scopes manually.