Merge pull request #13456 from thaJeztah/fix_copy_example

language/nodejs: un-wrap JSON in example to allow copying
This commit is contained in:
Usha Mandya
2021-09-02 16:42:53 +01:00
committed by GitHub

View File

@@ -92,11 +92,7 @@ Lets test that our application is connected to the database and is able to ad
$ curl --request POST \
--url http://localhost:8000/notes \
--header 'content-type: application/json' \
--data '{
"name": "this is a note",
"text": "this is a note that I wanted to take while I was working on writing a blog post.",
"owner": "peter"
}'
--data '{"name": "this is a note", "text": "this is a note that I wanted to take while I was working on writing a blog post.", "owner": "peter"}'
```
You should receive the following json back from our service.