From 137cc19404e03586eef77e918ba2b9347294003d Mon Sep 17 00:00:00 2001 From: Larry Gebhardt Date: Sun, 29 Dec 2019 08:12:02 -0500 Subject: [PATCH] Fix spacing --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13ff2b9..0de62e4 100644 --- a/README.md +++ b/README.md @@ -329,11 +329,13 @@ rails server ``` Create a new contact + ```bash curl -i -H "Accept: application/vnd.api+json" -H 'Content-Type:application/vnd.api+json' -X POST -d '{"data": {"type":"contacts", "attributes":{"first-name":"John", "last-name":"Doe", "email":"john.doe@example.com"}}}' http://localhost:3000/contacts ``` You should get something like this back + ``` HTTP/1.1 201 Created X-Frame-Options: SAMEORIGIN @@ -414,4 +416,4 @@ Test a validation Error ```bash curl -i -H "Accept: application/vnd.api+json" -H 'Content-Type:application/vnd.api+json' -X POST -d '{ "data": { "type": "contacts", "attributes": { "first-name": "John Doe", "email": "john.doe@boring.test" } } }' http://localhost:3000/contacts -``` \ No newline at end of file +```