Spring Boot C-Tree application sample app.
For building and running the application you need:
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main
method in the com.example.ctreedb.CtreedbApplication
class from your IDE.
Alternatively you can use the Spring Boot Maven plugin like so:
mvn spring-boot:run
The application by default will start at port 8081.
You can configure the port or C-Tree DB Connection details updating file:
src/main/resources/application.properties
The application has 2 api-s:
- POST a user:
http://localhost:8081/users/save
BODY: {
"userId": 1,
"name": "User Name"
}
- GET a user:
http://localhost:8081/users/{userId}
Released under the Apache License 2.0. See the LICENSE file.