Closed drewrwilson closed 9 years ago
Two ideas from @techieshark:
X-HEADER-TYPE=geojson
or
/stands?format=geojson
Is this still relevant? I thought we were just pulling /stands and then converting on the fly now?
Yeah it is not relevant anymore we can close it On Dec 19, 2014 5:16 PM, "Peter W" notifications@github.com wrote:
Is this still relevant? I thought we were just pulling /stands and then converting on the fly now?
— Reply to this email directly or view it on GitHub https://github.com/drewrwilson/lestandsjs/issues/31#issuecomment-67719079 .
Hey @techieshark,
To complete #29, I hardcoded a new route
/geo
as the route for the geojson for all stands. But now I'm realizing that it could contain all the same data as the/stands
route but just be in a different format: geojson instead of json.So I'm wondering what is the best design:
/geo
route as separate even though the query is the same as the/stands
and we'll deliver the response in geojson so it needs to have a different rout./stands
right to specify that the response should be geojson? When I try to define a route as/stands/geo
restify readsgeo
as the:id
for this other route:/stands/:id
/stands
always return geojson for both the fronted and the map? We would then need to update the frontend to make sure we're getting the correct attributes from the new geojson response.