Publishing an Outbound API to Your My APIs List
Use this procedure to publish an outbound API to your My APIs list. You can use your outbound APIs within your custom forms.
Context
To publish your own RESTful APIs that call your internal systems, to your My APIs list on the SAP Ariba Developer Portal for use in your custom form applications, follow these instructions:
Procedure
- Sign in to the SAP Ariba Developer Portal as a user with the Organization Admin group.
- Choose Manage from the left-hand navigation area.
- On the My APIs tab, do one of the following to open the Publish API form:
-
If this is your first outbound API, click Get Started
-
Otherwise, click the plus sign icon located near the Search bar on the left.
-
- Fill out the Publish API form as follows:
Field
Description
API Name
Required. Enter a name for the API.
Target URL
Required. This is the URL for the API you want to publish, such as https://www.someapipurveyor.com/api/v2. This URL must provide a complete path to the API. It may not include parameters. Parameters should be entered in the URL query parameters section or added at runtime. An internet protocol such as https is required.
Description
Required. A brief description of the API.
Allowed Tenants
Required. Select the realms from which you wish this API to be accessible.
Tags
Optional. You can add tags to the API. Later, you can filter your APIs using these tags. To add a tag, type it in the Tags field and then hit the Space bar. To remove a tag, click the x in the tag you want to remove.
Header parameters
Optional. You can enter static headers and values as desired in the Header parameters table. To add additional rows, click Add a row for each. Do not add headers with variable values to this table. Headers entered in this table will be submitted with every request to the API. Additional headers can also be sent at runtime.
URL query parameters
Optional. You can enter static URL query parameters and values in the URL query parameters table. To add additional rows, click Add a row for each. Do not add parameters with variable values to this table. Parameters and their values entered in this table will be submitted with every request to the API. Additional parameters can also be specified at runtime.
Mutual Authentication
Optional. If you wish to enable mutual authentication for this API, choose one from this list of public signed certificates.
Authentication type
This dropdown allows you to instruct SAP Ariba to perform authentication tasks. Possible values are:
- None
- Choose this if you do not need SAP Ariba to perform authentication tasks.
- Basic authentication
- Choose this if your API requires HTTP basic authentication. Enter user name and password in the form.
- OAuth 2.0
-
Choose this if your API requires OAuth 2.0 authentication. Complete the fields with the data required to authenticate to the external APIs authentication server, as follows:
-
Token endpoint (required): Enter the endpoint used to retrieve the access token for your API.
-
Client Id (required): Enter client ID for your API. This ID should be provided by the administrator of the external API.
-
Client secret (required): Enter the client secret for your API. This secret should be provided by the administrator of the external API.
-
Grant type (required): Enter the grant type for your API.
-
HTTP Request Method: Choose POST or GET from the dropdown. Default is POST.
-
Body Content Type: Choose FORM_URL_ENCODED or JSON from the dropdown. Default is FORM_URL_ENCODED.
-
OAuth header parameters (optional): Header parameters and their assigned values entered in this table will be sent with the access token.
-
OAuth URL query parameters (optional): URL query parameters and their assigned values entered in this table will be sent with the access token.
-
OAuth form parameters (optional): Form parameters and their assigned values entered in this table will be sent with the access token.
-
Browse file...
Required. Upload a swagger file that provides the methods and schema for the API
- To publish, click Publish at the bottom of the dialog. To cancel, click Cancel. Once the API is published, it can be used by SAP Ariba in your custom form setup.