Service

Name Get Property Review
Description Get a review of a property
Method GET
URL /properties/{property}/reviews/{review}
Example /api/properties/11111111/reviews/1234
Access EVERYONE

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description
property number yes Property id
review number yes Review id

Response

            
                {
                    "id": 6387,
                    "guest": "Dev Traveler",
                    "created": "2017-03-15T00:00:00-0400",
                    "stay_date": "2017-03-15T00:00:00-0400",
                    "title": "Nice House",
                    "description": "This property is very nice and owner is friendly.",
                    "valoration": 4,
                    "status": "posted"
                }
            
            

Response Codes

Code Message Cause Possible Frontend Message [Behavior]
EC000 Internal error in API Internal error connecting the database "Oops! Looks like we hit a snag. Try closing the app and reopening it."
EC001 User not found Token user id doesn't match our records "Sorry, We couldn't find your information!"
EC002 Property not found Property id doesn't match our records "Sorry, We couldn't find that property!"
EC004 Not found result There are problems finding the data in our database [Don't show reviews]
EC014 Property doesn't belong to that user The user logged in is not the property's owner "Sorry, you do not have access to that property!"
EC032 Review not found Review id doesn't match our records "Sorry, We couldn't find that review!"
EC033 Review doesn't belong to that property Review id doesn't belong to the property "Sorry, We couldn't find that review!"
SC006 User no authorization The token role is not valid for using the API services "You have been logged out." - [Take the user to the login screen]
SC014 Expired token The token has expired "You have been logged out." - [Take the user to the login screen]
VID112 Invalid input for property Property id is not a number [Call the API again using a valid value for property id]
VID221 Invalid input for review Review id is not a number [Call the API again using a valid value for review id]