Service

Name Get Top Destinations
Description Returns the images showed as top destinations in the home page
Method GET
URL /top/destinations
Example /api/top/destinations
Access EVERYONE

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description

Response

            
                {
                    "items_total": 5,
                    "items": [
                        {
                            "name": "Los Angeles",
                            "image": "http://apidev.homeescape.com/uploads/images/backgrounds/medium/1.jpg"
                        },
                        {
                            "name": "Miami Beach",
                            "image": "http://apidev.homeescape.com/uploads/images/backgrounds/medium/1.jpg"
                        } 
                        ...
                    ]
                }
            
            

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."
SC006 User no authorization The token is not valid for use our API services "Access Denied. Try contacting the support team."
SC014 Expired token The token has expired "Access Denied. Try contacting the support team."