Sebastián Ramírez
5f7fe926ab
✨ Add support for Response parameters to set headers, cookies, and status codes ( #294 )
...
* ✨ Add support for declaring a Response parameter to set headers and cookies
* ✅ Add source for docs and tests
* 📝 Add docs for setting headers, cookies and status code
* 📝 Add attribution to Hug for inspiring response parameters
2019-06-06 14:29:40 +04:00
Sebastián Ramírez
09cd7c47a1
✨ Implement dependency overrides for testing ( #291 )
...
* ✨ Implement dependency overrides for testing
* ✅ Add docs source tests and extra tests for dependency overrides
* 📝 Add docs for testing dependencies with overrides
2019-06-05 15:43:18 +04:00
Sebastián Ramírez
c7db2ff858
🐛 Fix path and query parameters receiving dict as valid ( #287 )
...
* 🐛 Fix path and query parameters accepting dict
* ✅ Add several tests to ensure invalid types are not accepted
* 📝 Document (to include tested source) using query params with list
* 🐛 Fix OpenAPI schema in query with list tutorial
2019-06-03 21:59:40 +04:00
Sebastián Ramírez
bd407cc4ed
✨ Refactor param extraction using Pydantic Field ( #278 )
...
* ✨ Refactor parameter dependency using Pydantic Field
* ⬆️ Upgrade required Pydantic version with latest Shape values
* ✨ Add tutorials and code for using Enum and Optional
* ✅ Add tests for tutorials with new types and extra cases
* ♻️ Format, clean, and add annotations to dependencies.utils
* 📝 Update tutorial for query parameters with list defaults
* ✅ Add tests for query param with list default
2019-05-30 17:40:43 +04:00
Sebastián Ramírez
62af6e0eeb
✨ Separate Pydantic's ValidationError handler and improve docs for error handling ( #273 )
...
* ✨ Implement separated ValidationError handlers and custom exceptions
* ✅ Add tutorial source examples and tests
* 📝 Add docs for custom exception handlers
* 📝 Update docs section titles
2019-05-29 16:27:55 +04:00
Sebastián Ramírez
703ade7967
🐛 Fix path in path parameters ( #272 )
2019-05-29 13:34:46 +04:00
Sebastián Ramírez
24e9ea28d3
✅ Update testing docs, examples for testing POST, headers ( #271 )
2019-05-29 11:47:21 +04:00
Sebastián Ramírez
7b63bc5551
✨ Add include, exclude, and by_alias to path operation methods ( #264 )
...
* ✨ Make jsonable_encoder's include and exclude receive sequences
* ✨ Add include, exclude, and by_alias to app and router
* ✨ Add and update tutorial code with new parameters
* 📝 Update docs for new parameters and add docs for updating data
* ✅ Add tests for consistency in path operation methods
* ✅ Add tests for new parameters and update tests
2019-05-27 16:08:13 +04:00
William Hayes
d8716f94ae
✨ Add skip_defaults support for path operations (for #242 ) ( #248 )
2019-05-25 19:35:57 +04:00
James Kaplan
b087246f26
✨ Add support for WebSockets with dependencies, params, etc #166 ( #178 )
2019-05-24 20:41:41 +04:00
Sebastián Ramírez
e92b43b5c8
✨ Add parameter dependencies to path operation decorators and include_router ( #235 )
...
* ✨ Implement dependencies in decorator and .include_router
* 📝 Add docs for parameter dependencies
* ✅ Add tests for dependencies parameter
* 🔥 Remove debugging prints in tests
* 📝 Update release notes
2019-05-16 18:07:00 +04:00
Sebastián Ramírez
3797c04946
✨ Use 401 with WWW-Authenticate for OAuth2 and add scope_str ( #188 )
2019-04-27 17:00:56 +04:00
Sebastián Ramírez
c1df0f6b84
✨ Add docs and tests for Jinja2 templates ( #186 )
...
* ✨ Add docs and tests for Jinja2 templates
* 🎨 Fix format in test, remove unused import
2019-04-26 18:49:15 +04:00
Sebastián Ramírez
528ef7e079
✨ Docs and tests, responses with headers and cookies ( #185 )
2019-04-26 15:13:59 +04:00
Sebastián Ramírez
2b7f201a44
📝 Add docs about returning a response directly and encoder ( #184 )
2019-04-26 13:40:23 +04:00
Sebastián Ramírez
192ebba2a2
♻️ Rename parameter content_type to response_class ( #183 )
2019-04-26 13:11:16 +04:00
Sebastián Ramírez
c705685394
✨ Add docs for HTTP Basic Auth and tests ( #177 )
2019-04-21 22:30:58 +04:00
Sebastián Ramírez
97adadd9e1
📝 Add docs for middleware ( #173 )
2019-04-21 19:56:20 +04:00
Sebastián Ramírez
596243f4a5
✨ Add docs about CORS ( #169 )
2019-04-20 21:13:01 +04:00
Sebastián Ramírez
61dd36a945
✨ Upgrade docstring Markdown parsing ( #163 )
...
* ✨ Upgrade docstring Markdown parsing
* 📝 Update release notes
2019-04-16 22:49:18 +04:00
Sebastián Ramírez
aad6b123f7
✨ Add support for multi-file uploads ( #158 )
2019-04-14 22:12:14 +04:00
Sebastián Ramírez
84de980977
✨ Add docs about responses with additional status codes ( #156 )
...
* ✨ Add docs about responses with additional status codes
* 📝 Update docs, link to documenting additional responses
2019-04-12 22:43:21 +04:00
Sebastián Ramírez
88ece95a30
🎨 Improve automatic naming of path operations in API docs ( #155 )
...
* 🎨 Improve operation summary naming
* 📝 Update names in README
* 🚚 Improve names of security tutorial
2019-04-12 21:25:26 +04:00
Sebastián Ramírez
46e3811f8d
✨ Add testing docs and tests ( #151 )
...
* ✏️ Fix typo in security intro
* ✨ Add testing docs and tests
* 🐛 Debug Travis coverage
* 🐛 Debug Travis coverage, report XML
* 💚 Make Travis/Flit use same code install
* ⏪ Revert Travis/Codecov debugging changes
2019-04-12 20:15:05 +04:00
Sebastián Ramírez
7391056daf
✨ Add OAuth2 scopes with SecurityScopes, upgrade Security ( #141 )
...
* ✨ Upgrade OAuth2 Security with scopes handling
* 📝 Update Security tutorial with OAuth2 and JWT
* ✨ Add tutorial code for OAuth2 with scopes (and JWT)
* ✅ Add tests for tutorial/OAuth2 with scopes
* 🐛 Fix security_scopes type declaration
* ✨ Add docs and tests for SecurityScopes
2019-04-09 23:29:04 +04:00
Mostapha Sadeghipour Roudsari
c1da3b38a3
📝 fix typos in nested models and OAuth2 with JWT ( #127 )
2019-04-05 16:08:59 +04:00
Sebastián Ramírez
ad471307e2
✨ Additional Responses ( #97 )
...
Add additional responses to OpenAPI, including Pydantic models or schemas directly, custom status codes, media types, extending `response_model`, etc.
2019-04-05 14:18:28 +04:00
Sebastián Ramírez
2bd775988f
✨ Add/refactor addditional responses, tests, docs
2019-04-05 13:54:00 +04:00
Sebastián Ramírez
37e0306517
📝 Update default error response in SQL tutorial
2019-04-03 15:49:40 +04:00
Alex Iribarren
1426b6200a
🗃️ Close the DB even if exceptions are raised ( #89 )
...
* Close the DB even if exceptions are raised
* 📝 Add note about closing DB in finally
2019-03-31 22:01:32 +04:00
Sebastián Ramírez
dd6ab23b62
✨ Add docs/tests extending OpenAPI ( #126 )
2019-03-30 19:53:44 +04:00
Stratos Gerakakis
3ce2920fef
🐛 fix name of shutdown_event in docs ( #105 )
...
Fix name copy/paste name error in docs source for startup/shutdown events.
2019-03-29 18:39:57 +04:00
Sebastián Ramírez
dc1e94d05f
✨ Document and test union and list response models ( #108 )
2019-03-25 23:28:09 +04:00
Sebastián Ramírez
1c2ecbb89a
✨ Add docs and tests for encode/databases ( #107 )
...
* ✨ Add docs and tests for encode/databases
* ➕ Add testing-only dependency, databases
2019-03-25 22:17:31 +04:00
Sebastián Ramírez
9b04593260
✨ Add support for BackgroundTasks parameters ( #103 )
...
* ✨ Add support for BackgroundTasks parameters
* 🐛 Fix type declaration in dependencies
* 🐛 Fix coverage of util in tests
2019-03-24 23:33:35 +04:00
Sebastián Ramírez
834723cf2c
✨ Add events docs and tests ( #99 )
2019-03-24 12:45:46 +04:00
Sebastián Ramírez
c64f8346ae
✨ Multi-value query parameters and duplicate headers ( #95 )
...
* 📝 Document multi-value query parameters
* ✨ Document and test multiple query values
* ✨ Document receiving duplicate headers
2019-03-22 21:47:54 +04:00
Sebastián Ramírez
108c2f3c0e
⬆️ Update Pydantic to 0.21.0 ( #90 )
...
* ⬆️ Upgrade Pydantic and others (isort), update docs after changes by isort
* 🎨 Format with newest isort, update type hints in jsonable_encoder
* 🔧 Update test script, to avoid Pydantic type errors
* ⬆️ Update pyproject.toml with latest Pydantic
2019-03-21 18:40:29 +04:00
Sebastián Ramírez
b269655b7f
📝 Add docs for application configuration (OpenAPI)
2019-03-21 18:08:10 +04:00
euri10
11c755bee3
✨ Add tags parameter to app.include_router ( #55 )
2019-03-16 21:15:08 +04:00
Sebastián Ramírez
0b9fe62a10
Add support for UploadFile class annotations ( #63 )
...
* ✨ Add support for UploadFile annotations
* 📝 Update File upload docs with FileUpload class
* ✅ Add tests for UploadFile support
* 📝 Update UploadFile docs
2019-03-03 20:52:37 +04:00
Sebastián Ramírez
bbd2198fa2
✨ Add docs for WebSockets ( #62 )
2019-03-02 21:45:15 +04:00
Sebastián Ramírez
01d6aa3dd1
📝 Add docs for debugging
2019-03-02 17:40:01 +04:00
Sebastián Ramírez
e3b4019fa3
✨ Update SQL with dependency and intro project generator ( #52 )
2019-02-24 01:04:44 +04:00
Sebastián Ramírez
9051ec3816
📝 Improve naming of middleware in SQLAlchemy tutorial
2019-02-21 10:15:39 +04:00
Sebastián Ramírez
984dd71d13
✨ Add docs for GraphQL ( #48 )
2019-02-20 21:58:26 +04:00
Sebastián Ramírez
12e087f0b5
✨ Use request.state for SQLAlchemy session in tutorial ( #45 )
2019-02-19 21:18:28 +04:00
Sebastián Ramírez
aa64eecda6
Update error handling docs, including Starlette's utils ( #41 )
...
📝 Update error handling docs, including Starlette's utils
2019-02-18 21:58:21 +04:00
Sebastián Ramírez
a809da5567
📝 Add note about path declaration order
2019-02-16 19:23:42 +04:00
Sebastián Ramírez
8772e2f2ee
✨ Add HTTPException with custom headers ( #35 )
...
* 📝 Update Release Notes with issue templates
* ✨ Add HTTPException with support for headers
Including docs and tests
* 📝 Update Security docs to use new HTTPException
2019-02-16 17:01:29 +04:00