mirror of https://github.com/docker/docs.git
language/nodejs: un-wrap JSON in example to allow copying
The JSON string was wrapped, causing the highlighter to consider it "output", which cannot be selected/copied in "console" blocks. This unwraps the JSON so that it can be copied. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
cecacbde49
commit
fbd8c365c8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue