Closed dzbo closed 8 years ago
I have namespace set to api/v1 in my environment. After using template like
api/v1
urlTemplate: '{+host}{/namespace}/post/{postId}/comments'
I get following path /api%2Fv1/post/1/comments which unfortunately is not recognized properly in Mirage server.
/api%2Fv1/post/1/comments
My temporary solution is by doing replace('%2F', '/') in overrided buildUrl but would be great to have that in base code.
replace('%2F', '/')
buildUrl
@dzbo would something like this work for you?
namespace: 'api/v1', urlTemplate: '{+host}/{+namespace}/post/{postId}/comments',
@amiel yes! it works, so simple, thank you :)
I have namespace set to
api/v1
in my environment. After using template likeI get following path
/api%2Fv1/post/1/comments
which unfortunately is not recognized properly in Mirage server.My temporary solution is by doing
replace('%2F', '/')
in overridedbuildUrl
but would be great to have that in base code.