I have a GET endpoint like the following:
http://test.com/api/test/1234
where 1234 is the value of the key. The URL only looks for the value of the key and not the key name itself.
I tried using:
var params = {'': vehicleId};
to set the parameter, but the resulting URL looks like:
http://test.com/api/test?=237819
How do I hit my API in the above format using Angular's $Resource .get() method?