-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* user new docs theme * remove whitespace * configure intersphinx and autodoc * fix formatting issues in CHANGES.rst * fix typo in docs * add missing section dividers to token auth docs * fix RST lists * add captions to homepage TOCs * use autodoc on Hooks page * update the session auth example * improve docs on session auth tables * add a docstring to `HookType` * add links to Validators docstrings * changed `session_login` and `session_logout` signatures If a default value is a class type, it seems to break autodoc. * added missing param tags to `CSRFMiddleware` docstring * tidy up links to OWASP in docstring * remove redundant comment in `CSPMiddleware` * use autodoc on CSP page * fix autodoc issue on `SessionsAuthBackend` If the default value is a class type, it breaks autodoc. So it now defaults to `None`. * fix autodoc issue with RateLimitingMiddleware * add docstring to `RateLimitingMiddleware` * add missing headers * fix RST lists * better explanation of creating custom rate limiting providers * tidy up JWT docs * improved docs for `FastAPIKwargs` * fixing autodoc issues with `PiccoloCRUD` * nicer RST links * autodoc fixes for `FastAPIWrapper` * fix linting errors * Update serializers.rst * improve fast api auth docs * add fastapi screenshot * improve fastapi examples - link to pymdb
- Loading branch information
1 parent
764cefd
commit ef69a27
Showing
31 changed files
with
674 additions
and
246 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
Serializers | ||
=========== | ||
|
||
``PiccoloCRUD`` uses ``create_pydantic_model`` to serialize and deserialize data. | ||
:class:`PiccoloCRUD<piccolo_api.crud.endpoints.PiccoloCRUD>` uses :func:`create_pydantic_model <piccolo.utils.pydantic.create_pydantic_model>` | ||
internally to serialize and deserialize data. | ||
|
||
When using ``PiccoloCRUD``, you don't have to worry about serialisation because ``PiccoloCRUD`` | ||
internally uses ``create_pydantic_model`` to create a `Pydantic model <https://pydantic-docs.helpmanual.io/usage/models/>`_ | ||
from a Piccolo ``Table``. However, ``create_pydantic_model`` is very useful when | ||
integrating Piccolo with a framework such as `FastAPI <https://github.com/tiangolo/fastapi>`_, | ||
which also uses `Pydantic <https://github.com/samuelcolvin/pydantic>`_ for serialisation. | ||
|
||
See the `create_pydantic_model docs <https://piccolo-orm.readthedocs.io/en/latest/piccolo/serialization/index.html>`_ | ||
for more details. | ||
:func:`create_pydantic_model <piccolo.utils.pydantic.create_pydantic_model>` is | ||
very useful when integrating Piccolo with a framework such as `FastAPI <https://github.com/tiangolo/fastapi>`_, | ||
which also uses `Pydantic <https://github.com/samuelcolvin/pydantic>`_ for | ||
serialisation. It automatically creates Pydantic models for you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.