April 2018
Intermediate to advanced
338 pages
7h 38m
English
Once we run the program, the HTTP server will start locally listening on port 8080.
Next, you could execute a GET request from the command line as:
$ curl -X GET http://localhost:8080/status API is up and running
This will give you the status of the REST API. You could execute a GET request from the command line as:
$ curl -X GET http://localhost:8080/employees [{"id":1,"firstName":"Foo","lastName":"Bar"},{"id":2,"firstName":"Baz","lastName":"Qux"}]
This will give you a list of all the employees. We could try to get the access token through the command line as:
$ curl -X GET http://localhost:8080/get-token
We will get the Not Implemented message from the server.
Let's understand the program we have written:
Read now
Unlock full access