Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The syntax of a REST API is as follows.

Code Block
languagexml

<api xmlns="http://ws.apache.org/ns/synapse"
     name="APIName"
     context="/APIContext" [hostname="string"] [port="integer"]>
   <resource methods="OPTIONS DELETE GET" uri-template="/url-template">
      <inSequence>
        ...
      </inSequence>
      <outSequence>
         ...
      </outSequence>
   </resource>
</api>

...