Using versioning in conjunction with yarp reverse proxy
@commonsensesoftware đang làm issue này rồi.
Từ ngày 1/12/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
We have a legacy .net framework and configured YARP to do a reverse proxy between the legacy one and the .net 6 migration one.
Those are working smoothly together but when I added a versioning library to implement API versioning inside .net 6 project for future developments, the reverse proxy didn't work anymore for the legacy API URLs.
Dotnet frameworks working under /v2 version and .net 6 would work in /v3 and uppers, but requests won't be redirected to /v2 anymore as APIVersioning assumes it as an invalid version.
I was looking for a way to override APIversioning middleware in some way but it seems it's not possible.
Describe the solution you'd like
I think its really needed to have a way to override middleware or something else to implement such scenarios
Additional context
No response
- Ngôn ngữ chính
- C#
- Star
- 3.2k
- Fork
- 721
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/aspnet-api-versioning
-
Stay backwards compatible within major versionCó thể đã có người làm @commonsensesoftware đã nhận 3 ngày trước. Đang mởbug triage
dotnet/aspnet-api-versioning#1230 · 1 bình luận · 1 người được giao ·
-
VersionedOpenApiOptionsFactory race: concurrent document requests cause NullReferenceException or unconfigured documentCó thể đã có người làm @commonsensesoftware đã nhận 10 ngày trước. Đang mởbug triage
dotnet/aspnet-api-versioning#1228 · 1 người được giao ·
-
InvalidOperationException when create schema on transformerCó thể đã có người làm @commonsensesoftware đã nhận 11 ngày trước. Đang mởasp.net core triage
dotnet/aspnet-api-versioning#1227 · 1 người được giao ·
-
.NET 11 RC - AOT Mode - System.NotSupportedException: ElementType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false.Có thể đã có người làm @commonsensesoftware đã nhận 11 ngày trước. Đang mởbug triage
dotnet/aspnet-api-versioning#1226 · 1 bình luận · 1 người được giao ·
-
xmldoc file detection by assembly from a referenced projectCó thể đã có người làm @commonsensesoftware đã nhận 25 ngày trước. Đang mởasp.net core enhancement
dotnet/aspnet-api-versioning#1224 · 3 bình luận · 1 người được giao ·
Tất cả issue của dotnet/aspnet-api-versioning
Issue tương tự
-
Money ExploitsĐang mởS: Untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
project-wayfarer/wayfarer-14#1628 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
copilot documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
dotnet/dotnet-api-docs#13124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày