Simple temperature REST API where you can get current temperature for the given city. You can also store your favorite city and get the temperature by that favorite city id.
To get this project running on your local machine, you'll need to git clone it, them import it to your chosen IDE. You'll also need to have an OpenWeatherMap API key, which you can then add as an environmental variable. The env variable is named "OPENWEATHERMAP_API_KEY" as can be seen in application.properties file. After that you can try and run the project. In the development phase H2 in-memory database is used.
Once you have the project running locally, on project's default port 9000, you can open the Swagger UI on your browser to see the REST documentation generated by Swagger.
To see the stored favorite cities, you can open up the H2 database, which you can find at H2-Console when you have the project running.
- unit tests
- integration tests
- error handling in corner cases
- more Swagger documentation
- crash when using non-number id
- to name things properly...
- Swagger
- more about testing
This project is licensed under the MIT License - see the LICENSE.md file for details