Name | Get Property Images |
---|---|
Description | Get the images of a property |
Method | GET |
URL | /properties/{property}/images |
Example | /api/properties/11111111/images | Access | EVERYONE |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|---|---|---|
property | number | yes | Property id |
size | text | no | Image size, allowed values: thumbnail, medium, large. Medium by default. |
[
{
"id": 000001,
"description": "Front",
"image": "http://dev.homeescape.com/uploads/images/9283/55853851/medium/HE-55853851-0000001.jpg"
},
{
"id": 000002,
"description": "Livingroom",
"image": "http://dev.homeescape.com/uploads/images/9283/55853851/medium/HE-55853851-0000002.jpeg"
},
...
]
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 | [Show the default picture for properties] |
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] |
VID275 |
Invalid input for size |
Size is not in [thumbnail, medium, large] | [Call the API again using a valid value for the size] |