This library add metadata endpoints to a .NET Core Api
- Install
Gainsway.MetadataEndpointspackage in the target project
dotnet add package Gainsway.MetadataEndpoints- Register the Metadata Endpoints services in
Program.cs:
/// Program.cs
//...
app.AddMetadataEndpoints();
//...
app.MapControllers();
app.Run();The metadata endpoint will return data in the following environment variables:
GIT_SHORT_SHA