Sample application to provide a service executing Marketplace Design GraphQL queries.
- Java 8+
- Maven 3.2+
This project was created from a simple springboot REST server. It provides a REST service that executes a GraphQL query to process and return the results.
- SpringBoot
- OkHttp client
- Swagger
- Clone this repo
mvn clean install
The endpoint of the marketplace GraphQL API and security token needs to be configured in the GraphQL client. Set the following to src/main/java/com/homeaway/hackathon/client/GraphQLClient.java
- ENDPOINT : The URL to the GraphQL endpoint
- AUTH_TOKEN : An Authenticated User Session ID
- Using Chrome, log into HomeAway as an partner/owner using your normal credentials.
- While successfully logged into HomeAway.com, open the Chrome developer tools with the HomeAway web page as your active tab in Chome.
- In the dev tools window that opens, navigate to the
Application
tab - Under
Storage
, expandCookies
and find the cookies forHomeAway.com
. Locate a cookie namedHASESSIONV3
. The value of this cookie will be your session ID.
./start.sh
- Navigate to
http://localhost:8080/swagger-ui.html
- Retrieving marketplace design and page views for a given property
- Retrieving markteplace design and page views for a set of properties