From: hayata-yamamoto Date: Tue, 16 Apr 2019 18:16:16 +0000 (+0900) Subject: :memo: fix URL examples in Tutorial: Query Parameters (#157) X-Git-Tag: 0.16.0~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29a4f90bcd5ee542ae835d3475b9c24653787cc1;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: fix URL examples in Tutorial: Query Parameters (#157) * modify tutorial * modify item_id --- diff --git a/docs/tutorial/query-params.md b/docs/tutorial/query-params.md index c499f45084..54a71f36d6 100644 --- a/docs/tutorial/query-params.md +++ b/docs/tutorial/query-params.md @@ -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`.