Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ If you use Windows command prompt to issue cURL commands, the following command
To create a new `Employee` record, use the following command in a terminal (the `$` at the beginning signifies that what follows it is a terminal command):
----
$ curl -X POST localhost:8080/employees -H 'Content-type:application/json' -d '{"name": "Samwise Gamgee", "role": "gardener"}'

----
# Windows PowerShell
curl -X POST "localhost:8080/employees" -H "Content-type:application/json" -d "{`"name`": `"Samwise Gamgee`", `"role`": `"gardener`"}"

----

Then it stores the newly created employee and sends it back to us:
Expand Down