Backend combines components such as kotlin, spring-boot, jpa, webmvc, junit, mockk
mvn package -DskipTests=true
mvn spring-boot:run -DskipTests=true
curl -v -L -X POST 'http://localhost:8080/api/users' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}' \
--data-raw '{
"firstName": "scott2",
"lastName": "pines",
"email": "[email protected]",
"role": "Manager",
"title": "MR",
"usercode": "scott21234"
}'
curl -v -L -X GET 'http://localhost:8080/api/users' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}'
curl -v -L -X GET 'http://localhost:8080/api/users/1' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}'
curl -v -L -X PUT 'http://localhost:8080/api/users/3' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}' \
--data-raw '{
"id": 3,
"firstName": "Banana",
"lastName": "Fruit",
"email": "[email protected]",
"role": "Admin",
"title": "Mr",
"usercode": "banana1234"
}'
curl -v -L -X GET 'http://localhost:8080/api/users/query?lastName=Fruit&title=mr&email=farm&role=manager' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}'
curl -v -L -X DELETE 'http://localhost:8080/api/users/4' \
-H 'Content-Type: application/json' -H 'Authorization: Bearer {token}'
http://localhost:8080/h2-console
Driver Class: org.h2.Driver
JDBC URL: jdbc:h2:file:/tmp/data/demo
User Name: sa
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Rest Repositories
- Spring Web
- Spring Data JPA
The following guides illustrate how to use some features concretely: