Designing Input Parameters

Previous Next

Input parameters for a custom REST service may be passed in different ways. In the following examples, '154' is the ID of a requested booking:

 

The input parameter may be part of the URL path:

http://localhost:8090/mycustomservice/ActiveBookings/154

 

 

The input parameter may be part of the URL query string:

http://localhost:8090/mycustomservice/ActiveBookings?booking_id=154

 

 

The input parameter may be a URL matrix parameter:

http://localhost:8090/mycustomservice/ActiveBookings;booking_id=154

 

 

The input parameter may be an HTTP Header.

 

Click on a subject to continue:

Input Parameters in the URL Path

Input Parameters in the URL Query String

Input Parameters as Matrix Parameters

Input Parameters as HTTP Headers

 

See Also

Setting up your own REST service

URL Query Parameters in Predefined REST Services