In this video we are implementing validation for the inputs of a REST resource.
Method | URI | Status | Description |
---|---|---|---|
GET | /api/validation/books | 200 | List of books |
GET | /api/validation/books/{ISBN} | 200 or 400 | A book by ISBN or invalid request |
POST | /api/validation/books | 201 or 400 | Create a book new book or invalid request |
In this video we are implementing a JWT based authentication for a REST resource.
Method | URI | Status | Description |
---|---|---|---|
GET | /api/jwt/authentication | 200 or 401 | Get authentication details or unauthorized response |
In this video is showing how to subscribe and broadcast SSE events to all registered clients.
Method | URI | Status | Description |
---|---|---|---|
GET | /metrics | 200 | Get the current metrics registry as JSON |
POST | /api/metrics/timed | 204 | Do a timed POST request, will be recorded in the metrics registry |
POST | /api/metrics/counted | 204 | Do a counted POST request, will be recorded in the metrics registry |
GET | /health | 200 | Perform a healtcheck and return response |
$ mvn clean verify
$ docker build -t advanced-service:1.0 .
$ docker run -it -p 8080:8080 advanced-service:1.0