September 2019
Intermediate to advanced
462 pages
11h 3m
English
Let’s verify that all that code works well together. Once again, build the application and run the service. Use curl or any tool of your choice to exercise the application. Here’s a series of curl calls to exercise the service.
| | $ curl -w "\n" -X GET http://localhost:8080/task |
| | $ echo "" |
| | $ curl -w "\n" -X POST \ |
| | -H "Content-Type: application/json" \ |
| | -d '{"description": "write code"}' http://localhost:8080/task |
| | $ curl -w "\n" -X POST \ |
| | -H "Content-Type: application/json" \ |
| | -d '{"description": "test"}' http://localhost:8080/task |
| | $ echo "" |
| | $ curl -w "\n" -X |
Read now
Unlock full access