Compare commits

...

3 Commits

Author SHA1 Message Date
90a0751d09 chore: Upgrade auf 1.1.0 2025-07-22 15:57:39 +02:00
d2793f476a feat(gateway): Unterstützung für 3-stufig verschachtelte API-Routen hinzugefügt
- Routenzuordnung für /api/{route1}/{route2}/{route3} hinzugefügt
- Ermöglicht Downstream-Routing zur Unterstützung komplexerer API-Strukturen
2025-07-22 15:55:48 +02:00
a6140cab92 feat(ocelot.json): Aktualisierung der ocelot.json-Routen für verbesserte Weiterleitung und Frontend-Integration
- Aktualisierte bestehende Routen für Swagger und API-Endpunkte
- Ersetzte /swagger/{route} durch /swagger/auth/{route} für den Auth-Dienst
- Modifizierter Routenabgleich zur Unterstützung verschachtelter Routen (z. B. /api/{route1}/{route2})
- Hinzufügen von Routen für die Frontend-Angular-Anwendung, die auf Port 4200 läuft
2025-07-22 10:16:30 +02:00
3 changed files with 181 additions and 42 deletions

View File

@ -4,9 +4,9 @@
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<Version>1.1.0</Version>
<AssemblyVersion>1.1.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -15,7 +15,7 @@
]
},
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamPathTemplate": "/swagger/auth/{route}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
@ -64,18 +64,6 @@
"UpstreamPathTemplate": "/api/Auth/logout",
"UpstreamhttpsMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/Auth/user",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/Auth/user",
"UpstreamhttpsMethod": [ "Get" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
"DownstreamScheme": "https",
@ -94,7 +82,7 @@
]
},
{
"DownstreamPathTemplate": "/api/{route}/{id}",
"DownstreamPathTemplate": "/api/{route1}/{route2}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
@ -102,9 +90,79 @@
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/{route}{id}",
"UpstreamPathTemplate": "/api/{route1}/{route2}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/{route}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/{route}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/{route1}/{route2}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/{route1}/{route2}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
}

View File

@ -2,67 +2,79 @@
"Routes": [
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
"Port": 7103
}
],
"UpstreamPathTemplate": "/swagger/{route}",
"UpstreamHttpMethod": [
"UpstreamhttpsMethod": [
"Get"
]
},
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http",
"DownstreamPathTemplate": "/swagger/auth/{route}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9090
"Port": 7192
}
],
"UpstreamPathTemplate": "/swagger/auth/{route}",
"UpstreamHttpMethod": [
"UpstreamhttpsMethod": [
"Get"
]
},
{
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false",
"DownstreamScheme": "http",
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9090
"Port": 7192
}
],
"UpstreamPathTemplate": "/api/Auth",
"UpstreamHttpMethod": [ "Post" ]
"UpstreamPathTemplate": "/api/Auth/login",
"UpstreamhttpsMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/Auth/check",
"DownstreamScheme": "http",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/Auth/check",
"UpstreamHttpMethod": [ "Post" ]
"UpstreamhttpsMethod": [ "Get" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
"DownstreamScheme": "http",
"DownstreamPathTemplate": "/api/Auth/logout",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/Auth/logout",
"UpstreamhttpsMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/{route}",
"UpstreamHttpMethod": [
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
@ -70,22 +82,91 @@
]
},
{
"DownstreamPathTemplate": "/api/{route}/{id}",
"DownstreamPathTemplate": "/api/{route1}/{route2}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/{route1}/{route2}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
"Port": 4200
}
],
"UpstreamPathTemplate": "/api/{route}{id}",
"UpstreamHttpMethod": [
"UpstreamPathTemplate": "/",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/{route}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/{route}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/{route1}/{route2}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/{route1}/{route2}",
"UpstreamhttpsMethod": [
"Get",
"Post",
"Put",
"Delete"
]
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:8443"
}
}