mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Merge pull request #13456 from thaJeztah/fix_copy_example
language/nodejs: un-wrap JSON in example to allow copying
This commit is contained in:
@@ -92,11 +92,7 @@ Let’s 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.
|
||||
|
||||
Reference in New Issue
Block a user