Let's say I have a model called Places w/ an action called "nearby". Per JSON conventions, should the URL be places/nearby?city="query" or..
-
-
@southpolesteve ...That means "places/nearby?city" right? What about "api/places?near=<Query>"? -
@kwuchu yep. I like #2 better. nearby is a scope/filter, so seems like it fits a query parameter best -
@southpolesteve Thanks for the input, I appreciate it. Still getting the hang of designing APIs, haha. -
@kwuchu No problem! Happy to help
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.