Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

📝 Add documentation for redefined path operations#4864

Merged
tiangolo merged 2 commits intofastapi:masterfrom
zanieb:matching-paths
May 12, 2022
Merged

📝 Add documentation for redefined path operations#4864
tiangolo merged 2 commits intofastapi:masterfrom
zanieb:matching-paths

Conversation

@zanieb
Copy link
Contributor

@zaniebzanieb commentedMay 4, 2022
edited
Loading

We define a FastAPI application that needs to have some selective routes overridden, but redefining a route does not change its behavior. This makes some sense once you readhttps://www.starlette.io/routing/#route-priority but was not entirely clear inhttps://fastapi.tiangolo.com/tutorial/path-params/#order-matters.

This pull request adds a brief blurb to the "Order matters" section about redefinition of path operations. Preview athttps://6272c2ad3e78ba024bb33491--fastapi.netlify.app/tutorial/path-params/#order-matters

I'd also like to open a separate PR to link to the Starlette routing documentation and describe why adding routers with colliding path operations always results in the first router's implementation being used. Let me know if there's a good place for that.

anna-geller reacted with thumbs up emoji
@codecov
Copy link

codecovbot commentedMay 4, 2022
edited
Loading

Codecov Report

Merging#4864 (bac9cae) intomaster (146f57b) willnot change coverage.
The diff coverage isn/a.

@@            Coverage Diff            @@##            master     #4864   +/-   ##=========================================  Coverage   100.00%   100.00%           =========================================  Files          531       531             Lines        13627     13629    +2     =========================================+ Hits         13627     13629    +2
Impacted FilesCoverage Δ
fastapi/exceptions.py100.00% <0.00%> (ø)
fastapi/applications.py100.00% <0.00%> (ø)
fastapi/dependencies/utils.py100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update146f57b...bac9cae. Read thecomment docs.

@github-actions
Copy link
Contributor

📝 Docs preview for commit2c441af at:https://6272c2ad3e78ba024bb33491--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commitbac9cae at:https://627d32652b19d50a163a9339--fastapi.netlify.app

@tiangolotiangolo changed the titleAdd documentation for redefined path operations📝 Add documentation for redefined path operationsMay 12, 2022
@tiangolotiangolo merged commit199916a intofastapi:masterMay 12, 2022
@tiangolo
Copy link
Member

Awesome, thanks@madkinsz! 📝

@zanieb
Copy link
ContributorAuthor

You're welcome! I appreciate your improvements :)

JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull requestAug 20, 2022
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@zangell44zangell44zangell44 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@zanieb@tiangolo@zangell44

[8]ページ先頭

©2009-2026 Movatter.jp