A REST API application using Node.js framework for building efficient and scalable server-side applications and Postgres for persistence.
Nest framework TypeScript starter repository.
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
-
API to fetch the list of restaurants in India using Zomato APIs (Get you own access key from Zomota's website).
(method: Get; route: localhost:3000/restaurants)
-
An api via which a user can post a rating on a restaurant, with his name and mailId. No login system. The API body params should carry name, email id, rating & restaurant id.
(method: Post; route: localhost:3000/restaurants/rating)
-
Api to fetch ratings of restaurants, passing restaurant Id as path param.
(method: Get; path_param:restaurant_id; route: localhost:3000/restaurants/rating/{res_id}) -
Api to fetch ratings of all restaurants.
(method: Get; route: localhost:3000/restaurants/ratings)
{
"name": "user", #this value can't be empty and should be string;
"emailid": "user@email.com", #this value should be in proper mail format;
"restaurantid": "12344312", #this should be number string;
"rating": 4.5 #this value should be number with range of 0-5;
}
localhost:3000/api
- Author - MohammedAli Momin
- LinkedIn - Codewithmo