Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Working with REST API Descriptors | Swagger Based Provider REST API Descriptors | Working with REST Resources in a REST API Descriptor | Working with Operations | Modifying Security Scheme for Operations in a REST Resource
 
Modifying Security Scheme for Operations in a REST Resource
You can add or remove security schemes for each of the REST operations in a REST resource.
*To add a security scheme
1. In the Package Navigator view, lock and open the REST API descriptor that contains the REST resource operation for which you want to add the security schemes.
2. Click the REST Resources tab.
3. Select the REST resource that contains the operation for which you want to add the security schemes.
4. Expand the operation for which you want to add the security schemes.
5. To add the security schemes for the operation, click Add next to Security.
6. In the Add Security Scheme dialog box, select the security scheme which you want to add:
a. If the security scheme is of type Basic Auth, click Finish.
b. If the security scheme is of type OAuth, click Next and select the scope for the selected security scheme. Click Finish.
You must define the security definitions before you add the security schemes for the REST operations. For more information, see Working with Security Definitions.
Designer displays the new security scheme in the text box adjacent to Security.
7. To remove an existing security scheme for the operation, select the security scheme next to Security, and click Remove.
8. Click File > Save.