Closed damsorian closed 7 years ago
You should be able to do that by overriding the parseRequestUrl
in your InMemoryDbService
to get what you want.
See HeroInMemDataOverrideService
for an example of a parseRequestUrl
override that turns /foo/heroes
into just /heroes
. You could do something similar to translate to a collection named warriors
or heroes-warriors
.
If you REALLY want to have a collection named heroes-warriors
, you can but you'll have to play around with the result of the ParsedRequestUrl
Hi!
I need to set a collection in a nested endpoint which is already a collection and I don't want to take it as an ID. is there any easy way?
Something like this:
Thanks!