This is a Spring Boot application that provides an API for managing hierarchical data structures. The application allows creating, updating, and deleting nodes in a tree-like structure.
- Java 17
-
Clone the repository:
git@github.com:palsch/java-node-tree-with-hibernate.git
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
GET /api/ale_antragFetches all Antrags.
POST /api/ale_antragCreates a new Antrag.
GET /api/ale_antrag/{antrag_id}Fetches a specific Antrag by ID.
DELETE /api/ale_antrag/{antrag_id}Deletes a specific Antrag by ID.
PATCH /api/ale_antrag/{antrag_id}/child-nodesUpdates an IbanQuestion.
POST /api/ale_antrag/{antrag_id}/{child_question_id}/child-nodesAdds a child node to a specific Antrag.
DELETE /api/ale_antrag/{antrag_id}/child-nodes/{child_node_id}Removes a child node from a specific Antrag.
To enable db trace logs, run the application with the dbtrace profile:
mvn spring-boot:run -Dspring-boot.run.profiles=dbtrace