]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
:sparkles: Add include, exclude, and by_alias to path operation methods (#264)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 27 May 2019 12:08:13 +0000 (16:08 +0400)
committerGitHub <noreply@github.com>
Mon, 27 May 2019 12:08:13 +0000 (16:08 +0400)
commit7b63bc555170fe1eccee65c4029f1337ad75eb21
tree531bd4058a34db4433312d65b55cca911f0d1900
parent747ae8210f4ae55cdc77f20b62853d4610c1abd3
:sparkles: Add include, exclude, and by_alias to path operation methods (#264)

* :sparkles: Make jsonable_encoder's include and exclude receive sequences

* :sparkles: Add include, exclude, and by_alias to app and router

* :sparkles: Add and update tutorial code with new parameters

* :memo: Update docs for new parameters and add docs for updating data

* :white_check_mark: Add tests for consistency in path operation methods

* :white_check_mark: Add tests for new parameters and update tests
17 files changed:
docs/src/body_updates/tutorial001.py [new file with mode: 0644]
docs/src/body_updates/tutorial002.py [new file with mode: 0644]
docs/src/response_model/tutorial004.py
docs/src/response_model/tutorial005.py [new file with mode: 0644]
docs/src/response_model/tutorial006.py [new file with mode: 0644]
docs/tutorial/body-updates.md [new file with mode: 0644]
docs/tutorial/response-model.md
fastapi/applications.py
fastapi/encoders.py
fastapi/routing.py
mkdocs.yml
tests/test_operations_signatures.py [new file with mode: 0644]
tests/test_tutorial/test_body_updates/__init__.py [new file with mode: 0644]
tests/test_tutorial/test_body_updates/test_tutorial001.py [new file with mode: 0644]
tests/test_tutorial/test_response_model/test_tutorial004.py
tests/test_tutorial/test_response_model/test_tutorial005.py [new file with mode: 0644]
tests/test_tutorial/test_response_model/test_tutorial006.py [new file with mode: 0644]