An application to demonstrate how Spring Boot, Spring Data, and Postgres can be used together to create a simple RESTful API using an embedded tomcat server.
- SpringBoot
- Maven
- Docker
- Postgres
- mvnv package
- cd target
- java -jar SpringBootRestApi-0.0.1-SNAPSHOT.jar
- Verify the server is running @ http://localhost:8080/bill
- mvn clean install
- docker build . -t springbootapi:1.0
- docker ps
- docker run --net=host --name springbootapi -d -p 8080:8080 springbootapi:1.0
-
Adding Purchasing Specialist
- Each purchasing specialist had a limit. (default limit is 200. changeable from application.properties)
- Each purchasing specialist is identified by First Name, Last Name and E-mail. The Same Name and The transactions of people with surname information but with different email addresses are carried out in a separate way it is evaluated.
-
Getting list of the all purchasing specialists
-
Deleting Purchasing Specialist
- Deleting the purchasing specialist by Id.
-
Adding bills
- the amount in the new bill is sum with the approved bills of the purchasing specialist. If the amount exceeds the limit, the bill is not approved. if it does not exceed the bill is approved.
-
getting list of the
- all bills
- all accepted bills
- all accepted bills by purchasing specialist's id
- all declined bills
- all declined bills by purchasing specialist's id
-
Deleting bill
- Deleting the bill by Id.
PROJECT_FOLDER
β README.md
β pom.xml
βββ[src]
β βββ[main]
β βββ[java]
β βββ[resources]
| | SpringBootRestApi.postman_collection.json #The postman collection that you can use the send request to server
β βββapplication.properties #contains springboot cofigurations
β
β
βββ[target] #Java build files, auto-created after running java build: mvn install
β βββ[classes]