mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typos in index and alternatives
This commit is contained in:
parent
6d9fc08a7e
commit
04d77bb1c4
10
README.md
10
README.md
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+.
|
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
|
||||||
|
|
||||||
The key features are:
|
The key features are:
|
||||||
|
|
||||||
|
|
@ -166,7 +166,7 @@ You will see the alternative automatic documentation (provided by <a href="https
|
||||||
|
|
||||||
## Example upgrade
|
## Example upgrade
|
||||||
|
|
||||||
Now modify the file `main.py` to recive a body from a `PUT` request.
|
Now modify the file `main.py` to receive a body from a `PUT` request.
|
||||||
|
|
||||||
Declare the body using standard Python types, thanks to Pydantic.
|
Declare the body using standard Python types, thanks to Pydantic.
|
||||||
|
|
||||||
|
|
@ -257,7 +257,7 @@ item: Item
|
||||||
* Validation of data:
|
* Validation of data:
|
||||||
* Automatic and clear errors when the data is invalid.
|
* Automatic and clear errors when the data is invalid.
|
||||||
* Validation even for deeply nested JSON objects.
|
* Validation even for deeply nested JSON objects.
|
||||||
* <abbr title="also known as: serialization, parsing, marshalling">Conversion</abbr> of input data: coming from the network, to Python data and types. Reading from:
|
* <abbr title="also known as: serialization, parsing, marshalling">Conversion</abbr> of input data: coming from the network to Python data and types. Reading from:
|
||||||
* JSON.
|
* JSON.
|
||||||
* Path parameters.
|
* Path parameters.
|
||||||
* Query parameters.
|
* Query parameters.
|
||||||
|
|
@ -292,7 +292,7 @@ Coming back to the previous code example, **FastAPI** will:
|
||||||
* All this would also work for deeply nested JSON objects.
|
* All this would also work for deeply nested JSON objects.
|
||||||
* Convert from and to JSON automatically.
|
* Convert from and to JSON automatically.
|
||||||
* Document everything with OpenAPI, that can be used by:
|
* Document everything with OpenAPI, that can be used by:
|
||||||
* Interactive documentation sytems.
|
* Interactive documentation systems.
|
||||||
* Automatic client code generation systems, for many languages.
|
* Automatic client code generation systems, for many languages.
|
||||||
* Provide 2 interactive documentation web interfaces directly.
|
* Provide 2 interactive documentation web interfaces directly.
|
||||||
|
|
||||||
|
|
@ -329,7 +329,7 @@ For a more complete example including more features, see the <a href="https://fa
|
||||||
**Spoiler alert**: the tutorial - user guide includes:
|
**Spoiler alert**: the tutorial - user guide includes:
|
||||||
|
|
||||||
* Declaration of **parameters** from other different places as: **headers**, **cookies**, **form fields** and **files**.
|
* Declaration of **parameters** from other different places as: **headers**, **cookies**, **form fields** and **files**.
|
||||||
* How to set **validation constrains** as `maximum_length` or `regex`.
|
* How to set **validation constraints** as `maximum_length` or `regex`.
|
||||||
* A very powerful and easy to use **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system.
|
* A very powerful and easy to use **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system.
|
||||||
* Security and authentication, including support for **OAuth2** with **JWT tokens** and **HTTP Basic** auth.
|
* Security and authentication, including support for **OAuth2** with **JWT tokens** and **HTTP Basic** auth.
|
||||||
* More advanced (but equally easy) techniques for declaring **deeply nested JSON models** (thanks to Pydantic).
|
* More advanced (but equally easy) techniques for declaring **deeply nested JSON models** (thanks to Pydantic).
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ What inspired **FastAPI**, how it compares to other alternatives and what it lea
|
||||||
|
|
||||||
There have been many tools created before that have helped inspire its creation.
|
There have been many tools created before that have helped inspire its creation.
|
||||||
|
|
||||||
I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins and tools.
|
I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins, and tools.
|
||||||
|
|
||||||
But at some point, there was no other option than creating something that provided all these features, taking the best ideas from previous tools, and combining them in the best way possible, using language features that weren't even available before (Python 3.6+ type hints).
|
But at some point, there was no other option than creating something that provided all these features, taking the best ideas from previous tools, and combining them in the best way possible, using language features that weren't even available before (Python 3.6+ type hints).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+.
|
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
|
||||||
|
|
||||||
The key features are:
|
The key features are:
|
||||||
|
|
||||||
|
|
@ -166,7 +166,7 @@ You will see the alternative automatic documentation (provided by <a href="https
|
||||||
|
|
||||||
## Example upgrade
|
## Example upgrade
|
||||||
|
|
||||||
Now modify the file `main.py` to recive a body from a `PUT` request.
|
Now modify the file `main.py` to receive a body from a `PUT` request.
|
||||||
|
|
||||||
Declare the body using standard Python types, thanks to Pydantic.
|
Declare the body using standard Python types, thanks to Pydantic.
|
||||||
|
|
||||||
|
|
@ -257,7 +257,7 @@ item: Item
|
||||||
* Validation of data:
|
* Validation of data:
|
||||||
* Automatic and clear errors when the data is invalid.
|
* Automatic and clear errors when the data is invalid.
|
||||||
* Validation even for deeply nested JSON objects.
|
* Validation even for deeply nested JSON objects.
|
||||||
* <abbr title="also known as: serialization, parsing, marshalling">Conversion</abbr> of input data: coming from the network, to Python data and types. Reading from:
|
* <abbr title="also known as: serialization, parsing, marshalling">Conversion</abbr> of input data: coming from the network to Python data and types. Reading from:
|
||||||
* JSON.
|
* JSON.
|
||||||
* Path parameters.
|
* Path parameters.
|
||||||
* Query parameters.
|
* Query parameters.
|
||||||
|
|
@ -292,7 +292,7 @@ Coming back to the previous code example, **FastAPI** will:
|
||||||
* All this would also work for deeply nested JSON objects.
|
* All this would also work for deeply nested JSON objects.
|
||||||
* Convert from and to JSON automatically.
|
* Convert from and to JSON automatically.
|
||||||
* Document everything with OpenAPI, that can be used by:
|
* Document everything with OpenAPI, that can be used by:
|
||||||
* Interactive documentation sytems.
|
* Interactive documentation systems.
|
||||||
* Automatic client code generation systems, for many languages.
|
* Automatic client code generation systems, for many languages.
|
||||||
* Provide 2 interactive documentation web interfaces directly.
|
* Provide 2 interactive documentation web interfaces directly.
|
||||||
|
|
||||||
|
|
@ -329,7 +329,7 @@ For a more complete example including more features, see the <a href="https://fa
|
||||||
**Spoiler alert**: the tutorial - user guide includes:
|
**Spoiler alert**: the tutorial - user guide includes:
|
||||||
|
|
||||||
* Declaration of **parameters** from other different places as: **headers**, **cookies**, **form fields** and **files**.
|
* Declaration of **parameters** from other different places as: **headers**, **cookies**, **form fields** and **files**.
|
||||||
* How to set **validation constrains** as `maximum_length` or `regex`.
|
* How to set **validation constraints** as `maximum_length` or `regex`.
|
||||||
* A very powerful and easy to use **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system.
|
* A very powerful and easy to use **<abbr title="also known as components, resources, providers, services, injectables">Dependency Injection</abbr>** system.
|
||||||
* Security and authentication, including support for **OAuth2** with **JWT tokens** and **HTTP Basic** auth.
|
* Security and authentication, including support for **OAuth2** with **JWT tokens** and **HTTP Basic** auth.
|
||||||
* More advanced (but equally easy) techniques for declaring **deeply nested JSON models** (thanks to Pydantic).
|
* More advanced (but equally easy) techniques for declaring **deeply nested JSON models** (thanks to Pydantic).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue