Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Working with REST API Descriptors | Swagger Based Provider REST API Descriptors | Changing the Available MIME Types for a REST API Descriptor
 
Changing the Available MIME Types for a REST API Descriptor
The MIME types preference determines the list of available MIME types for a REST API descriptor (RAD). The MIME types specified in the preference determine the contents of the Consumes and Produces fields in the REST API Descriptor wizard, on the General tab in the RAD editor, and for an operation on the REST Resources tab.
Note:
You can access the MIME types preference by clicking the in the upper right corner of the General tab in the RAD editor.
*To change the available MIME types
1. In Designer, click Window > Preferences.
2. In the Preferences dialog box, select Software AG > Service Development > REST API Descriptor.
3. Under MIME types, do one of the following:
To...
Do this...
Add a MIME type
Click Add. In the Add new MIME type dialog box, enter the MIME type and click OK.
Edit a MIME type
Select the MIME type that you want to edit and click Edit. In the Edit MIME type dialog box, modify the selected MIME type and click OK.
Delete a MIME type
Select the MIME type that you want to delete and click Remove.
Restore the default MIME types
Click Restore Defaults.
4. Click Apply to save your changes to the list of available MIME types.
5. Click OK.