fastapi/fastapi
retnikt c6dd627bdd
Add support for Python's http.HTTPStatus in status_code (#1534)
* Normalise IntEnums to ints for route status codes

Closes #1349

* add tests for status code enum support

* add docs for status code enum support

* add endpoint test for enum status code

* 📝 Update note about http.HTTPStatus

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-06-13 19:40:10 +02:00
..
dependencies 🐛 Fix duplicated headers set by indirect dependencies (#1386) 2020-06-13 14:44:51 +02:00
middleware Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
openapi Enable showCommonExtensions and showExtensions in SwaggerUI (#1466) 2020-06-13 18:16:34 +02:00
security Export OAuth2PasswordRequestFormStrict from security (#1462) 2020-06-13 18:08:08 +02:00
__init__.py 🔖 Release version 0.56.1 2020-06-13 01:17:06 +02:00
applications.py Add support for tag metadata in OpenAPI (#1348) 2020-06-13 13:58:06 +02:00
background.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
concurrency.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
datastructures.py Add support for UploadFile class annotations (#63) 2019-03-03 20:52:37 +04:00
encoders.py When using Pydantic models with __root__ use the internal value in jsonable_encoder (#1524) 2020-06-13 19:20:11 +02:00
exception_handlers.py 🐛 Fix issue with exotic pydantic error serialization (#748) 2019-11-29 07:02:10 +01:00
exceptions.py 🐛 Admit valid types for Pydantic fields as responses models (#1017) 2020-02-29 14:04:35 +01:00
logger.py 🔊 Refactor logging (#781) 2019-12-09 20:02:44 +01:00
param_functions.py Implement dependency value cache per request (#292) 2019-06-05 21:00:54 +04:00
params.py Implement __repr__ methods for path parameters to simplify debugging (#1560) 2020-06-13 01:22:30 +02:00
py.typed add py.typed to ship typing information (#209) 2019-05-11 13:43:47 +04:00
requests.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
responses.py Add ORJSONResponse (#1065) 2020-03-01 22:30:58 +01:00
routing.py Add support for Python's http.HTTPStatus in status_code (#1534) 2020-06-13 19:40:10 +02:00
staticfiles.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
templating.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
testclient.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00
utils.py Optimize regexp pattern in get_path_param_names (#1243) 2020-06-12 21:59:32 +02:00
websockets.py Re-export utils from Starlette (#1064) 2020-03-01 21:49:20 +01:00