Endpoint |
Method |
Req. body |
Status |
Resp. body |
Description |
/orders |
GET |
|
200 |
Orders |
Get all the orders. |
/orders |
POST |
OrderRequest |
200 |
Order |
Submit a new order. |
Gradle Command |
Description |
./gradlew bootRun |
Run the application. |
./gradlew build |
Build the application. |
./gradlew test |
Run tests. |
./gradlew bootJar |
Package the application as a JAR. |
./gradlew bootBuildImage |
Package the application as a container image. |
After building the application, you can also run it from the Java CLI:
java -jar build/libs/order-service-0.0.1-SNAPSHOT.jar