Syntax of a Direct REST Request

A Direct REST request is sent from a client as an HTTP verb (GET, POST, PUT, or DELETE), followed by the URL of the resource. The syntax is similar to that of other types of Jade web‑enabled applications.

Verb REST server URL:port‑number/path[.xml|json|jsonn][&extra_info]
     <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑>
              first part              second part       third part

The following Jade Direct REST service request retrieves information in JSON format for a customer with an identifier of 123.

GET://localhost:port-number/customer/123.json
     <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑>
           first part          second part   

The first part of the URL is the address and port number of the Direct REST application.

http://localhost:543

In this example, the host is the local machine and :543 is its port number.

The second part of the URL contains the following.

The third part of the URL is the query string.

GET http://localhost/customer/123.json

For a GET request, you can append a dot character (.) followed by the XML or JSON for an object, if the REST service method has an object parameter in the signature.

For a POST, PUT, or DELETE request, you can supply the XML or JSON for an object in the request body, if the REST service method has an object parameter in the signature.

See also "Parsing JSON Text".

2022.0.05 and higher