FastAPI Complete Course - Project-1 Query Parameters
HTML-код
- Опубликовано: 26 июл 2024
- 00:00 - What is a Query?
00:50 - Query Parameter with a default value
05:29 - Optional Query Parameter
When you declare other function parameters that are not part of the path parameters, they are automatically interpreted as "query" parameters.
The query is the set of key-value pairs that go after the ? in a URL, separated by & characters.
For example, in the URL:
127.0.0.1:8000/items/?skip=0&limit=10
the query parameters are:
skip: with a value of 0
limit: with a value of 10
fastapi.tiangolo.com/tutorial...