Defining input parameters |
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 |