HTTP GET
The GET method is used to (i) retrieve details of a resource or (ii) search resources.
Get Details of a Resource
URL Pattern
https://<Hostname>/ems/v90/ws/<Object type>/<Object Id>.ws
Example
For:
<ObjectType> = product
<ObjectId> = 1
the URL becomes:
https://<Hostname>/ems/v90/ws/product/1.ws
This request will return the details of a product with ProductId = 1.
Search Resources
URL Pattern
https://localhost:8443/ems/v90/ws/<RootObjectType>/<Root Object Id>/<Object Type>.ws?<SearchParam>=<SearchValue>
NOTE
>The question mark (?) denotes the starting point for optional parameters. You need to separate multiple optional parameters by semi-colons (;).
>If you remove the question mark along with the parameters that follow, all records will be returned.
Example
For:
<RootObjectType> = vendor
<RootObjectId> = 1
<ObjectType> = product
<SearchParam> = productName
<SearchValue> = print
the URL becomes:
https://localhost:8443/ems/v90/ws/vendor/1/product.ws?productName=print
This request will return all records for vendor ID = 1 and Product name starting with 'print'.
NOTE You can remove or repeat the <RootObjectType>/<RootObjectId>/
part in the URL depending on the nesting of the resource. Example: vendor/{vendorId}/product.ws