Monday, 23 March 2020

how do I do this in my rest api? specific GET request

Hello. I am new to programming and followed a tutorial to create a rest api recently.when i access http://localhost:3000/restaurants it should show all places.But I wanted to create somethign similar to findById for a get response that will show restaurants in certain countries. For examplehttp://localhost:3000/restaurants/australiawould do a get and show all restaurants if the param country is australia.

Submitted March 23, 2020 at 11:13AM by champion_n

No comments:

Post a Comment