]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: fix URL examples in Tutorial: Query Parameters (#157)
authorhayata-yamamoto <hayata.yamamoto.work@gmail.com>
Tue, 16 Apr 2019 18:16:16 +0000 (03:16 +0900)
committerSebastián Ramírez <tiangolo@gmail.com>
Tue, 16 Apr 2019 18:16:16 +0000 (22:16 +0400)
* modify tutorial

* modify item_id

docs/tutorial/query-params.md

index c499f45084abd69cf5e7570cd05eccf080799837..54a71f36d67efe5ba2c6d736dee2a7801b415497 100644 (file)
@@ -81,31 +81,31 @@ You can also declare `bool` types, and they will be converted:
 In this case, if you go to:
 
 ```
-http://127.0.0.1:8000/items/?short=1
+http://127.0.0.1:8000/items/foo?short=1
 ```
 
 or
 
 ```
-http://127.0.0.1:8000/items/?short=True
+http://127.0.0.1:8000/items/foo?short=True
 ```
 
 or
 
 ```
-http://127.0.0.1:8000/items/?short=true
+http://127.0.0.1:8000/items/foo?short=true
 ```
 
 or
 
 ```
-http://127.0.0.1:8000/items/?short=on
+http://127.0.0.1:8000/items/foo?short=on
 ```
 
 or
 
 ```
-http://127.0.0.1:8000/items/?short=yes
+http://127.0.0.1:8000/items/foo?short=yes
 ```
 
 or any other case variation (uppercase, first letter in uppercase, etc), your function will see the parameter `short` with a `bool` value of `True`. Otherwise as `False`.