diff --git a/.gitignore b/.gitignore index 50c5dcf9..f4837ae5 100644 --- a/.gitignore +++ b/.gitignore @@ -351,3 +351,4 @@ MigrationBackup/ .idea/ .DS_Store .idea +src/Database/Prototype/Output diff --git a/README.md b/README.md index 5cfb4c07..2f74eb18 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ | master coverage status | dev coverage status | | ------------- | ------------- | -| [![Coverage Status](https://coveralls.io/repos/github/LiveDevTeam/O2NextGen/badge.svg?branch=master)](https://coveralls.io/github/LiveDevTeam/O2NextGen?branch=master) | [![Coverage Status](https://coveralls.io/repos/github/LiveDevTeam/O2NextGen/badge.svg?branch=dev)](https://coveralls.io/github/LiveDevTeam/O2NextGen?branch=dev) | +| [![Coverage Status](https://coveralls.io/repos/github/LiveDevTeam/O2NextGen/badge.svg?branch=master)](https://coveralls.io/github/LiveDevTeam/O2NextGen?branch=master) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLiveDevTeam%2FO2NextGen.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FLiveDevTeam%2FO2NextGen?ref=badge_shield) +| [![Coverage Status](https://coveralls.io/repos/github/LiveDevTeam/O2NextGen/badge.svg?branch=dev)](https://coveralls.io/github/LiveDevTeam/O2NextGen?branch=dev) | | ------------- | ------------- | @@ -189,3 +190,7 @@ AK name - 'AK_columnName_columnNameId' * ``` DDL - O2NextGens_Tests - usp - Run_All_Tests(dbo.usp_[Procedure Name]) ``` + + +## License +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLiveDevTeam%2FO2NextGen.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FLiveDevTeam%2FO2NextGen?ref=badge_large) \ No newline at end of file diff --git a/src/Services/c-gen/O2NextGen.CertificateManagement.Api/Controllers/VersionController.cs b/src/Services/c-gen/O2NextGen.CertificateManagement.Api/Controllers/VersionController.cs new file mode 100644 index 00000000..eef50250 --- /dev/null +++ b/src/Services/c-gen/O2NextGen.CertificateManagement.Api/Controllers/VersionController.cs @@ -0,0 +1,40 @@ +using System; +using System.Reflection; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc; + +namespace O2NextGen.CertificateManagement.Web.Controllers +{ + + [AllowAnonymous] + public class VersionController:ControllerBase + { + #region Fields + + private readonly IHostingEnvironment _environment; + + #endregion + + + #region Ctors + + public VersionController(IHostingEnvironment environment) + { + _environment = environment; + } + + #endregion + + [HttpGet("[controller]")] + public object Index() + { + var exVersion = Assembly.GetExecutingAssembly().GetName().Version; + return new + { + Environment = _environment.EnvironmentName, + Version = exVersion.ToString() + }; + } + } +} \ No newline at end of file