Developer Portal 10.11 | Using Developer Portal | APIs | Trying APIs | Trying a OData API | Authorization fields
 
Authorization fields
This section lists the steps to provide authorization details, for testing APIs, based on the authorization type applied to the corresponding APIs:
Authorization type
Procedure
For APIs protected with API key
*Select the required application from the Applications field.
*Select API Key from the Authorization type field.
The test request is sent to the API server with the API key of the selected application.
For APIs that require basic authentication
*Select Basic auth from the Authorization type field.
*Provide the user credentials and click Update.
The test request is sent with the selected authorization details.
For APIs protected with JWT
*Select the required application from the Applications field.
*Select JWT from the Authorization type field.
The JWT tokens available for the selected application appear in the Available tokens section. You can select a token from the list or request for a new one.
*Click to get a new access token. The Create new token page appears.
*Provide the credentials associated with the JWT authorization and click Get token.
The token appears in the Available token section. Validity of token's are based on the duration specified in API Gateway.
*Select the created token.
The test request is sent to the API server with the selected token details.
For APIs protected with OAuth
*Select the required application from the Applications field.
*Select OAuth 2.0 from the Authorization type field.
The tokens available for the selected application appear in the Available tokens section. You can select a token from the list or request for a new one.
*Click to get a new access token. The Create new token page appears.
*Provide a Token name.
*Select the required Grant type and the required scope.
*Click Get token.
If you had selected the Authorization code or Implicit grant type, the webMethods API Gateway Resource access approval page appears.
*Select the required scopes and click Approve.
*Provide your API Gateway credentials and click Sign in. You will be redirected to Developer Portal Try API page. The token appears in the Available token section. Validity of token's are based on the duration specified in API Gateway.
*Select the created token.
If you had selected Client credentials grant type, then the request token appears without any further action.
*Select the created token.
The test request is sent to the API server with the selected token details.
For APIs that do not require any authentication
*Select None from the Authorization type field.
The test request is sent to the API server without any authorization.