This program was developed as a study project in the Mindswap Academy. The program can do requests to an externel API (Teleport - https://developers.teleport.org/) with cities and their rankings of evaluation. As a User you can see a list of cities, you can add them to your list of visited cities, you can also make a review of a city you visited and have a living city in your profile. This project was made thinking on the people that want to explore the world living in different places for short periods of time.
Download the files. Run the docker compose. Change your schema name on aplication properties. Both application container and the databse container will start.
The product uses REST API. Every end point is also visible to be analysed in the swagger link. List of possible requests:
- Getters (from Teleport API)
-
Get a specific city: /city/{cityName}
-
Get all cities: /cities
-
Get a list of cities based on a category and a minimum score: /citiesFromApi/{category}/{minimum_score}
-
-
Getters
-
Get all users: /users
-
Get username of a user: /{username}
-
Get a new token: /refreshToken
-
Get a list of visited cities in database: /allCities
-
Get a list of visited cities in database by username: /allCities/{username}
-
Get the living city of a user: /livingCity/{username}
-
Get a ordered list of visited cities: /citiesOrdered
-
Get a list of cities based on a category and a minimum score: /cities/{category}/{score}
-
Get a city by the city name on database: /cityDB/{cityName}
-
-
Posters
-
Creating a user: /user
-
Creating a role: /role
-
Creating a review to a living city /review/{username}/{cityName}
-
-
Updaters
-
Update role of user: /role={name}/user={username}
-
Update the living city of a user: /visited/{username}/{cityName}
-
Update the review of a living city: /updateReview/{cityName}/{user}
-
Update the living city of a user: /livingCity/{username}/{cityName}
-
-
Deleters
-
Delete user: /delete/user={username}
-
Delete role: /delete/role={roleType}
-
-
Updaters
- Update the password: /changepassword
Gonçalo Mendes, Ana Sequeira and Tiago Costa.
If you have any questions, you can reach me at [email protected]