Skip to content

API for location review

chananbental edited this page Apr 23, 2018 · 5 revisions

details the API for the following struct for location review:

the struct

{
id: obectID,
street name: string,
city: string,
geoLocation:[number],
rated characteristics: 
    {
         parking: real,
         publicTransport: real,
         noise: real,
         commercialServices: real,
         upkeep: real,
         general rating: real
     },
Pros: string,
Cons: string
}

API

Add review

POST /reviews

Get review for street

GET /reviews?=[city=],[street=]...[]

Edit rated review

PATCH /reviews/userID

Get users reviews

GET /reviews/:userID
Clone this wiki locally