0

The model I have created has this url: http://localhost:3000/api/Employees

Now if I set the http property like this: "http": {"path": "/foo/mypath"}

http://docs.strongloop.com/display/public/LB/Model+definition+JSON+file#ModeldefinitionJSONfile-Top-levelproperties

What will be the new url to access the model ? I tried various permutations and combinations none of which seem to work.

SubuKris
  • 71
  • 2

1 Answers1

1

At the moment, http paths must not start with a leading slash, see https://github.com/strongloop/loopback-datasource-juggler/pull/573

The following setting should work well

"http": {"path": "foo/mypath"}

URL:

/api/foo/mypath
Miroslav Bajtoš
  • 10,667
  • 1
  • 41
  • 99