Web elements specify externally facing REST API or HTML pages. This way you can easily expose any data or functionality, or your ORIGAM applications in a simple way.
If you need a WebService (SOAP) interface you can find a description under Web Services (SOAP) API
Use Cases
The typical use cases for Web API/Pages are:
- HTML pages for extranet access.
- JSON API for modern JavaScript (AJAX) applications.
- JSON API for mobile applications.
- XML API for integration with other enterprise systems.
Common attributes
Each web API/page has the following common attributes.
Url | Specifies under which URL the API will be available. The URL may contain placeholders within curly brackets that denote parameters. The URL has to comit the initial ' Naming recommendation It is a good practice to put all public facing API's under / |
---|---|
MimeType | Specifies which MIME Type the API will return. These will be mainly
Dynamic MIME typeYou can also use a special question mark value " JSON ConversionIn te case of a Data Page you can easily return JSON data by simply specifying a MIME Type |
Roles | Enter an application role name for controlling which users have access to this API. Enter a star (* ) to allow a public access. |
Features | Enter a feature name which needs to be turned on in order to access this API. If nothing is entered the API is always available. |
Input Parameters
You can pass parameters to the internal handler in the following ways:
- Parameters defined inside the URL
- Query parameters
- In the request body using POST request