How to run it:
- Open the example in VisualStudio (or any equivalent IDE).
- Edit the
src/main/java/co/dapi/examples/wildfly/DapiService.javafile to replace theappSecretvalue with your Dapi application'sAppSecret. - Start your WildFly server.
- Open a terminal session in the example folder.
- Run this command
mvn clean package wildfly:deploy - The endpoint is now exposed on: http://localhost:8080/DapiSDKExample/HandleSDKRequests (by default).
- Use Postman (or any equivalent app), to POST valid Dapi requests to the endpoint
URL(mentioned above).- All requests' bodies should be in
JSONformat.
- All requests' bodies should be in