Syntax of a REST Request

A 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 IIS server URL/jadehttp.dll/path[.xml|json|jsonn]?app_name[&extra_info]
     <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑>
             first part               second part            third part

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

GET http://localhost/jade/jadehttp.dll/customer/123.json?RestApp
    <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑> <‑‑‑‑‑>
                first part                second part   third part

The first part of the URL is the path to the jadehttp.dll file.

http://localhost/jade/jadehttp.dll

In this example, the IIS host is the local machine and jade is an alias defined in IIS for the physical directory that contains the jadehttp.dll file.

The second part of the URL contains the following.

The third part of the URL is the query string. It contains the name of the JADE REST services application. In the following example, the JADE REST services application is called RestApp.

GET http://localhost/jade/jadehttp.dll/customer/123.json?RestApp

For a GET request, you can append an ampersand character (&) followed by the XML or JSON for an object, if the REST services 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 services method has an object parameter in the signature.

The type of the object is specified by the type of the parameter in the signature of the JadeRestService method. The information for that object is passed in the query string after the ampersand character (&) in XML or JSON format.

See also "Parsing JSON Text".