I need to GET from a url of this pattern
api/v1/album/:albumId/song/:songId/
How do I pass these params in the url.
I tried using params in
params: {
albumId: 2,
songId: 4
}
but the GET call was made to api/v1/album/:albumId/song/:songId/?albumId=2&songId=4
instead of
api/v1/album/2/song/4/
How can this be done without using string concatenation?
$resourceinstead of$http.$resourceknows how to interpolate your URL pattern but$httpdoes not.