Add REST API Definitions

You must add the REST definition files to the src/main/resources/rest directory of the RS Gateway Extension module to group the REST APIs together. This directory can contain multiple files, each of which can contain multiple REST definitions.

About this task

The definition in this example has the path URL and the service definition (multiple types, such as GET, POST, and so forth can be defined). For each service definition, you define the request and response objects, together with any URL or path parameters that are required. In this example, a URL parameter SubscriberSearchTerm of type RestQueryTerm is included. This is a specific type that is defined in the MATRIXX Extensions SDK.

Procedure

  1. Create a file rsgwextension/src/main/resources/rest/extensions.xml.
  2. Add the REST definitions to the file.
    See the GET API and POST API examples for more information.
  3. Save the file.