backend: versioned API
This commit is contained in:
1 parent
599237dd2c
commit
bbbbca95fa
14 files changed
+58
-45
No files matched your search
@@ -0,0 +1,6 @@
|
||||
namespace Helpdesk.Api.Infrastructure;
|
||||
|
||||
internal static class ApiRoutes
|
||||
{
|
||||
public const string V1 = "api/v1";
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public static class SwaggerSetup
|
||||
{
|
||||
Title = "Univerzitní helpdesk – API",
|
||||
Version = "v1",
|
||||
Description = "REST API pro webovou a mobilní aplikaci. Access token získáte přes POST /api/auth/login.",
|
||||
Description = $"REST API pro webovou a mobilní aplikaci. Access token získáte přes POST /{ApiRoutes.V1}/auth/login.",
|
||||
});
|
||||
|
||||
options.AddSecurityDefinition(SchemeId, new OpenApiSecurityScheme
|
||||
|
||||
Reference in new issue
Block a user