diff --git a/DbService.cs b/DbService.cs index b5d0a53..60229f5 100644 --- a/DbService.cs +++ b/DbService.cs @@ -6,9 +6,12 @@ using System.Runtime.Serialization; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using MySqlConnector; -using de.hottis.genericdatabaseapiservice.Models; -namespace de.hottis.genericdatabaseapiservice.Services { +// make sure to adjust the prefix with the PACKAGE_NAME from ENV +using com.krohne.genericdatabaseapiservice.Models; + +// make sure to adjust the prefix with the PACKAGE_NAME from ENV +namespace com.krohne.genericdatabaseapiservice.Services { public interface IDbService { Task> ReadBySelect(string selectStatement, bool justOne, TIN input); } diff --git a/OpenAPIDocCtrl.cs.tmpl b/OpenAPIDocCtrl.cs.tmpl index 4548f56..a640b3f 100644 --- a/OpenAPIDocCtrl.cs.tmpl +++ b/OpenAPIDocCtrl.cs.tmpl @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Mvc; using System.IO; using System.Threading.Tasks; -namespace de.hottis.genericdatabaseapiservice.Controllers { +namespace ${env['packagename']}.Controllers { [Route("/${env['routeprefix']}/openapi/JSON")] public class OpenAPIDocCtrl : ControllerBase { private IWebHostEnvironment _hostingEnvironment;