Describes a CRUD service for the management of REST Hooks. The app runs on port 8080. The interaction with it can be done through any REST API client like Postman or curl.
GET /subscriptions
curl -i -H 'Accept: application/json' http://localhost:8080/subscriptions
GET /subscriptions/1
curl -i -H 'Accept: application/json' http://localhost:8080/subscriptions/1
POST /subscriptions
curl -i -H 'Content-type: application/json' -X POST -d '{"url":"subscriptions/66","topicId":"fsdfdfsdfdsf","hookUri":"http://localhost:8080/subscriptions/66","topicName":"hook.66","topicDescription":"New topic 66"}' http://localhost:8080/subscriptions
PUT /subscriptions/1
curl -i -H 'Content-type: application/json' -X PUT -d '{"url":"subscriptions/77","topicId":"777777777","hookUri":"http://localhost:8080/subscriptions/77","topicName":"hook.77","topicDescription":"Topic updated to 77"}' http://localhost:8080/subscriptions/1
DELETE /subscriptions/1
curl -i -H 'Accept: application/json' -X DELETE http://localhost:8080/subscriptions/1
./mvnw spring-boot:run
./mvnw tests
docker compose up