Commit 0ebf45b7 by AlexNasyr

transit

parent 1d9c1e93
......@@ -19,7 +19,8 @@ namespace SocialMinistryDataExchange.Controllers {
var result = await _repository.GetPersonByID("27373577-4234-43B2-A969-8D95B9384171");
return result;
}
[HttpPost]
//[HttpPost]
[HttpGet]
[Route("[controller]/getpersonByID/{PersonID}")]
public async Task<List<SMResponce>> GetPersonByID(string PersonID) {
var result = await _repository.GetPersonByID(PersonID);
......@@ -34,7 +35,8 @@ namespace SocialMinistryDataExchange.Controllers {
return result;
}
// запрос по серии/номеру документа личности
[HttpPost]
//[HttpPost]
[HttpGet]
[Route("[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}")]
public async Task<List<SMResponce>> GetPersonFixDoc(string Rowguid, string Seria, string Number) {
var result = await _repository.GetPersonByDoc(JsonSerializer.Serialize(new SMRequest() { rowguid_eais = Rowguid, document_seria = Seria, document_number = Number }));
......@@ -42,7 +44,8 @@ namespace SocialMinistryDataExchange.Controllers {
}
// запрос статуса нуждаемости по guid личности
[HttpPost]
//[HttpPost]
[HttpGet]
[Route("[controller]/getpersonDefenceDemandByID/{PersonID}")]
public async Task<SMDefenceDemandResponce> GetPersonDefenceDemandByID(string PersonID) {
var result = await _repository.GetPersonDefenceDemandByID(PersonID);
......
......@@ -16,14 +16,11 @@ namespace SocialMinistryDataExchange {
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services) {
var ConnectionString = Configuration.GetConnectionString("Êîíòèíãåíò_center");
services.AddControllers();
services.AddSwaggerGen(c => {
c.SwaggerDoc("v1", new OpenApiInfo { Title = "SocialMinistryDataExchange", Version = "v1" });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment