udacity / mws-restaurant-stage-3

Development server for students completing stage three of the restaurant reviews project for Mobile Web Specialist Nanodegree
44 stars 490 forks source link

Any chance of a PUT endpoint for restaurants? #22

Open gitasong opened 6 years ago

gitasong commented 6 years ago

I've just graduated from the MWS nanodegree and would like to extend the project further. Is there any chance of getting a PUT endpoint for restaurants (and maybe a POST endpoint as well, for new restaurants) so that we can update those? I've looked at the sails config and API files and don't see anything remotely resembling route configurations. Thanks!

gitasong commented 6 years ago

Me and a member of my cohort have discovered that a PUT request to http://localhost:1337/restaurants/<restaurant_id> will work, but it sure would be nice to have a PUT endpoint for all restaurants, to be able to update them en masse (e.g. while offline), instead of having to do every restaurant via its id.