Skip to content

hkoskinen/temperature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature REST API

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.

Getting Started

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.

Swagger documentation

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.

H2 Database

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.

TODO

Add:
  • unit tests
  • integration tests
  • error handling in corner cases
  • more Swagger documentation
Fix:
  • crash when using non-number id
Learn:
  • to name things properly...
  • Swagger
  • more about testing

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages