Netflix / falcor-router

A Falcor JavaScript DataSource which creates a Virtual JSON Graph document on your app server.
http://netflix.github.io/falcor
Apache License 2.0
104 stars 46 forks source link

Curl methods to get data from falcor servers #219

Closed AlexCppns closed 6 years ago

AlexCppns commented 6 years ago

Hello,

I cannot find any information on how to convert the paths in usable URLs

Eg, I have the following falcor route:

 route: "events[{integers:eventIds}]['name', 'description']"

I have tried:

http://localhost:3000/model.json?paths=[["events",[{1,2}],["name","description"]]]&method=get
http://localhost:3000/model.json?paths=[["events",[1,2],["name","description"]]]&method=get
http://localhost:3000/model.json?paths=[["events",1,["name","description"]]]&method=get
http://localhost:3000/model.json?paths=[["events",{from:1, to: 2},["name","description"]]]&method=get

None of those work.