/bring

bring

Primary LanguageJavaApache License 2.0Apache-2.0

Getting Started

The swagger can be used directly for tests.

http://localhost:8080/swagger-ui.html#/`

The any account should be created firstly,

curl -X POST "http://localhost:8080/api/books" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"bookName\": \"string\", \"category\": \"string\", \"quantityInStock\": 10, \"unitPrice\": 10, \"writer\": \"string\"}"

curl -X POST "http://localhost:8080/api/customers" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"age\": 10, \"email\": \"bk2@gmail.com\", \"name\": \"burak\", \"surname\": \"kilinc\"}"

curl -X POST "http://localhost:8080/api/orders" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"bookIds\": [ { \"amount\": 1, \"bookId\": 2 } ], \"customerId\": 1, \"id\": 0, \"isValid\": true}"

curl -X GET "http://localhost:8080/api/statistics/all" -H "accept: */*"

Firstly the database and table desing was configured and completed; Second basic test endpoint was coded; After then relationship between entities were completed; Some test classes were developed; all endpoints was completed;

The tests can be run anytime.

mvn clean install

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely: