This is based on the [gift-card demo] (https://github.com/AxonIQ/giftcard-demo) application, but is only an API. The initial application was generated using the micronaut launch applicaiton (https://micronaut.io/launch/)
- Java 11
Requirements
You can download a ZIP file with AxonServer as a standalone JAR. This will also give you the AxonServer CLI and information on how to run and configure the server.
Alternatively, you can run the following command to start AxonServer in a Docker container:
docker run -d --name axonserver -p 8024:8024 -p 8124:8124 axoniq/axonserver
The application supports sending the following http commands to manage a giftcard
List all giftcards GET from localhost:8080/giftcard
Issue POST to localhost:8080/giftcard?id=[your id here]&amount=[int]
Redeem PUT to localhost:8080/giftcard/{id}/redeem?amount=[int]
Reload PUT to localhost:8080/giftcard/{id}/reload?amount=[int]
Cancel PUT to localhost:8080/giftcard/{id}/cancel