Skip to content

Commit 3bf753e

Browse files
authored
chore: split curl commans by multiple lines to avoid horizontal scroll
[skip ci]
1 parent c9245de commit 3bf753e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
8888
<summary>Examples for curl</summary>
8989

9090
```console
91-
$ curl -i --json '{"name":"Sport","name_ru":"Спорт","slug":"sport","user_id":100}' http://localhost:3000/v1/categories
91+
$ curl -i http://localhost:3000/v1/categories \
92+
--json '{"name":"Sport","name_ru":"Спорт","slug":"sport","user_id":100}'
9293
HTTP/1.1 204 No Content
9394
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"
9495
Date: Wed, 15 Jul 2020 18:06:33 GMT
@@ -97,7 +98,8 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
9798
$ curl http://localhost:3000/v1/categories
9899
[{"id":1,"name":"Sport","name_ru":"Спорт","slug":"sport"}]
99100

100-
$ curl -i --json '{"name":"Fauna","name_ru":"Фауна","slug":"fauna","user_id":101}' -X PUT http://localhost:3000/v1/categories/1
101+
$ curl -i -X PUT http://localhost:3000/v1/categories/1 \
102+
--json '{"name":"Fauna","name_ru":"Фауна","slug":"fauna","user_id":101}'
101103
HTTP/1.1 204 No Content
102104
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"
103105
Date: Wed, 15 Jul 2020 18:06:34 GMT

0 commit comments

Comments
 (0)