Author: Havrlik, created on: 2024
- Show a simple Spring project as an example.
- Download dependencies and build Gradle project.
- Create
.envfile, you can copy content fromdev.example.env. - You need to prepare empty PostgreSQL database, then set access in the
.envfile. - Run the application by main method in
/src/main/java/com/havrlik/test/project/Application.java.
- The application has one endpoint
POST /save.- [Note: do not work if you do not have the required source file.]
- You need to set URL of the file in
.envfile, variableFILE_URL. - Functionality download zip file from given URL. Inner file have to be an XML.
The XML contains some details (
name,code) about a municipality and parts of a municipality. The XML is parsed and the details are saved to the database.