GSG-G7 / sitspot

http://sitspot2.herokuapp.com/
0 stars 0 forks source link

Backend Route | place-review #9

Closed asem1789 closed 4 years ago

asem1789 commented 5 years ago

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:

const schema = yup.object().shape({
  id: yup
    .number()
    .required(),
});

Response :

Response may be success or error :