I'?ve been reading up on RESTful services and I'm a little confused on how data should be passed. Should data be passed in the Path portion of the URI or by using Query Strings?
Most examples I've seen for a GET send the data as part of the Path in the URI. GET http://example.com/order/ABC/123
Is sending the request using Query Strings acceptable? GET http://example.com/order?orderNumber=ABC&lineNumber=123
If you are adding a record, would you send the data in the Path portion of the URI or would you use a Query String? POST http://example.com/order/ABC/123/PART-A/200/CASE vs POST http://example.com/order?orderNumber...200&units=CASE
Most examples I've seen for a GET send the data as part of the Path in the URI. GET http://example.com/order/ABC/123
Is sending the request using Query Strings acceptable? GET http://example.com/order?orderNumber=ABC&lineNumber=123
If you are adding a record, would you send the data in the Path portion of the URI or would you use a Query String? POST http://example.com/order/ABC/123/PART-A/200/CASE vs POST http://example.com/order?orderNumber...200&units=CASE
Comment