Using versioning in conjunction with yarp reverse proxy
@commonsensesoftware ci sta già lavorando.
Dal 1/12/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 3.2k
- Fork
- 721
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dotnet/aspnet-api-versioning
-
Stay backwards compatible within major versionForse già presa @commonsensesoftware l’ha presa 2 giorni fa. Apertabug triage
dotnet/aspnet-api-versioning#1230 · 1 commento · 1 assegnatario ·
-
VersionedOpenApiOptionsFactory race: concurrent document requests cause NullReferenceException or unconfigured documentForse già presa @commonsensesoftware l’ha presa 10 giorni fa. Apertabug triage
dotnet/aspnet-api-versioning#1228 · 1 assegnatario ·
-
InvalidOperationException when create schema on transformerForse già presa @commonsensesoftware l’ha presa 10 giorni fa. Apertaasp.net core triage
dotnet/aspnet-api-versioning#1227 · 1 assegnatario ·
-
.NET 11 RC - AOT Mode - System.NotSupportedException: ElementType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false.Forse già presa @commonsensesoftware l’ha presa 10 giorni fa. Apertabug triage
dotnet/aspnet-api-versioning#1226 · 1 commento · 1 assegnatario ·
-
xmldoc file detection by assembly from a referenced projectForse già presa @commonsensesoftware l’ha presa 25 giorni fa. Apertaasp.net core enhancement
dotnet/aspnet-api-versioning#1224 · 3 commenti · 1 assegnatario ·
Tutte le issue di dotnet/aspnet-api-versioning
Issue simili
-
bug P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
nightscout/nocturne#1908 ·
I maintainer di solito rispondono entro 1 giorno
-
bug documentation Needs: Triage :mag:
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
WPF: each page's `Title` overwrites the window title, and returning to a page does not restore itAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows area/Docs partner/agentic-workflows
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jamesmontemagno/tiny-clips#378 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno