Skip to content

Commit

Permalink
feat: add prefix to api version
Browse files Browse the repository at this point in the history
Refs: #1021
  • Loading branch information
Phil91 committed Sep 23, 2024
1 parent 09bca3a commit f228ae5
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 7,850 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Org.Eclipse.TractusX.Portal.Backend.Administration.Service
version: v2.3.0
version: v2.3.0-alpha.1
paths:
/api/administration/companydata/ownCompanyDetails:
get:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Org.Eclipse.TractusX.Portal.Backend.Apps.Service
version: v2.3.0
version: v2.3.0-alpha.1
paths:
'/api/apps/AppChange/{appId}/role/activeapp':
post:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Org.Eclipse.TractusX.Portal.Backend.Notifications.Service
version: v2.3.0
version: v2.3.0-alpha.1
paths:
/api/notification/errormessage:
get:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Org.Eclipse.TractusX.Portal.Backend.Registration.Service
version: v2.3.0
version: v2.3.0-alpha.1
paths:
/api/registration/errormessage:
get:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Org.Eclipse.TractusX.Portal.Backend.Services.Service
version: v2.3.0
version: v2.3.0-alpha.1
paths:
/api/services/errormessage:
get:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@
</PropertyGroup>

<Target Name="openapi" AfterTargets="Build">
<GetAssemblyIdentity AssemblyFiles="$(OutputPath)$(AssemblyName).dll">
<Output TaskParameter="Assemblies" ItemName="assemblyInfo"/>
</GetAssemblyIdentity>

<Message Text="generating openapi" Importance="high" />
<Message Text="generating openapi v$(Version)" Importance="high" />
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet tool run swagger tofile --yaml --output ../../../docs/api/$(AssemblyName).yaml $(OutputPath)$(AssemblyName).dll v$([System.Version]::Parse(%(assemblyInfo.Version)).ToString(3))" EnvironmentVariables="DOTNET_ROLL_FORWARD=LatestMajor;ASPNETCORE_ENVIRONMENT=Swagger;MVC_ROUTING_BASEPATH=api/administration" />
<Exec Command="dotnet tool run swagger tofile --yaml --output ../../../docs/api/$(AssemblyName).yaml $(OutputPath)$(AssemblyName).dll v$(Version)" EnvironmentVariables="DOTNET_ROLL_FORWARD=LatestMajor;ASPNETCORE_ENVIRONMENT=Swagger;MVC_ROUTING_BASEPATH=api/administration" />
</Target>

<ItemGroup>
Expand Down
Loading

0 comments on commit f228ae5

Please sign in to comment.