November 2018
Intermediate to advanced
404 pages
10h 16m
English
Build and run your Vapor application:
$ vapor build $ vapor run
You can check all the route handlers using Postman. For example, create a HTTP POST request to localhost:8080/journal/ while your Vapor application is running locally:

Alternatively, you can use the curl tool to make a request in the Terminal:
$ curl --header "Content-Type: application/json" --request POST --data '{"id":"2","title":"New Test","content":"New Content"}' http://localhost:8080/journal/
The output of the two tests looks like the following:
Server starting on http://localhost:8080Created: Entry(id: "4BCDD028-ECF0-4D43-81FD-2C8318781480", title: ...
Read now
Unlock full access