angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

custom url #178

Open jojoblaze opened 6 years ago

jojoblaze commented 6 years ago

Hi, is it possible to configure the service to respond to url like this? /AuthenticationService.svc/api/DirectLogin

My app need to talk with a not-so-rest service and i can't figure it out how to make im-memory-web-api work.

Thanks id advance

LambdaCruiser commented 6 years ago

Check out this example: https://github.com/angular/in-memory-web-api/blob/master/src/app/hero-in-mem-data-override.service.ts

Look at the parseRequestUrl method. You could do something similar to translate your custom URL into something the library can handle.