Closed asem1789 closed 4 years ago
Route: /api/v1/place-review/:type/:placeId
Method: GET
Use database query to fetch place by id
we need validate api by yap:
const schema = yup.object().shape({ id: yup .number() .required(), });
Response may be success or error :
{ error: "bad request", "Status-Code": 400 }
{ data: [] , // return all data about place "Status-Code": 200 }
GET Places BY Id
Route: /api/v1/place-review/:type/:placeId
Method: GET
Main Things :
Database :
Use database query to fetch place by id
Validation :
we need validate api by yap:
Response :
Response may be success or error :