Setting the Resource Location
A REST resource location is the second part of the URI and it specifies which resource of the API is to be accessed.
When instantiating a
The /pet/3 part is the specific resource we are accessing, which is the resource part we need to provide in the
client := create JadeRestRequest("/pet/3");
In this case, part of the resource location is a parameter to let the server know which of the Pet resource objects we are trying to access, specifically the Pet with an ID equal to 3. We can make this more readable by using a parameter name in the create method and then using the
client := create JadeRestRequest("/pet/{petID}"); client.addURLSeg("petID", "3");