This is a simple Rest Api using SpringBoot and Spring Data JPA. To read XML files and store them in a database.
Application can be run via this command (assuming that docker compose) is installed in the system:
The following steps will run a local instance of the Temporal Server using the default configuration file (docker-compose.yml
):
- Clone this repository.
- Change directory into the root of the project.
- Run the
docker-compose up
command.
git clone https://github.com/AnatoliiPerfun/SpringBootRestAPI.git
cd docker-compose
docker-compose up
Clone this repository. Change directory into the root of the project. Run the docker-compose up command.
If you run command:
docker-compose up
To remove all containers and volumes:
docker-compose down -v
-
POST /api/xyz
-
requires valid xml Multipart file attached in request body parameter
file
. -
GET /api/xyz
-
retrieves Data entities. Endpoint allows paging, sorting and filtering.
page
&size
for paging;sort
, which expectskey,value
pair where:- key = entity property (see json below), e.g.
id
ornewspaperName
, - value = sort direction (
asc
ordesc
).
- key = entity property (see json below), e.g.