Simple Rest API written in Java using Spring Boot and PostgreSQL.
-
The Country API
- POST /api/v1/countries Add a new country.
- GET /api/v1/countries Retrieve all countries.
- GET /api/v1/countries/{id} Get a country by its id.
- PUT /api/v1/countries/{id} Update a country by its id.
- DELETE /api/v1/countries/{id} Delete a country by its id
-
The POI API
- POST /api/v1/poi Add a new POI.
- GET /api/v1/poi Retrieve all POIs.
- GET /api/v1/poi/{id} Get a POI by its id.
- PUT /api/v1/poi/{id} Update a POI by its id.
- DELETE /api/v1/poi/{id} Delete a POI by its id.
- /swagger-ui
- /api-docs
Download and Install the JDK.
Download and Install the PostgreSQL, an open source relational database.
Install Git, the free and open source distributed version control system.
Install Docker, an open source containerization platform.
Run git clone [email protected]:orbanszlrd/geo-api.git
to clone the repository from GitHub.
After installing PostgreSQL, create a database for your project.
SPRING_DATASOURCE_URL=jdbc:postgresql://<hostname>:5432/<dbname>
SPRING_DATASOURCE_USERNAME=<username>
SPRING_DATASOURCE_PASSWORD=<password>