- Java >=1.8
Health check
GET /health
To make a payment for an order given its orderId, use
GET /payments/orders/{orderId}
To build the application, run ./gradlew build
To run tests, run ./gradlew test
Required evironment variables:
SERVER_PORT - port the appliation will run on
ORDER_SERVICE_HOST - host running OrderService
ORDER_SERVICE_PORT - port running OrderService
Run the app using ./gradlew bootRun
Verify the app is running using curl -i localhost:<SERVER_PORT>/health
from a terminal (replace <SERVER_PORT> with the port
the app is running on)
or
navigating to localhost:<SERVER_PORT>/health
from a web browser.
If the response is "OK", the app is succesfully running.
To see list of available tasks, run ./gradlew tasks