เปลี่ยนเส้น call api สำหรับเช็ค profileId
This commit is contained in:
parent
02487d91ff
commit
9c47834033
6 changed files with 18 additions and 9 deletions
|
|
@ -51,7 +51,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
// // throw new Exception(GlobalMessages.DataNotFound);
|
// // throw new Exception(GlobalMessages.DataNotFound);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
//var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
var profileId = "";
|
var profileId = "";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
// // throw new Exception(GlobalMessages.DataNotFound);
|
// // throw new Exception(GlobalMessages.DataNotFound);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
//var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
var profileId = "";
|
var profileId = "";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|
@ -131,7 +132,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
// {
|
// {
|
||||||
// return 0;
|
// return 0;
|
||||||
// }
|
// }
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
//var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
var profileId = "";
|
var profileId = "";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
||||||
public async Task<ActionResult<ResponseObject>> GetDisciplineUser(string status = "ALL", string type = "ALL", int year = 0, int page = 1, int pageSize = 25, string keyword = "", string? sortBy = null, bool descending = false)
|
public async Task<ActionResult<ResponseObject>> GetDisciplineUser(string status = "ALL", string type = "ALL", int year = 0, int page = 1, int pageSize = 25, string keyword = "", string? sortBy = null, bool descending = false)
|
||||||
{
|
{
|
||||||
var id = "";
|
var id = "";
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
//var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
|
@ -357,7 +358,8 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
||||||
[HttpPost()]
|
[HttpPost()]
|
||||||
public async Task<ActionResult<ResponseObject>> CreateDiscipline([FromForm] DisciplineComplaint_AppealRequest req)
|
public async Task<ActionResult<ResponseObject>> CreateDiscipline([FromForm] DisciplineComplaint_AppealRequest req)
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
//var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
var id = "";
|
var id = "";
|
||||||
var type = "";
|
var type = "";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
[HttpGet("keycloak")]
|
[HttpGet("keycloak")]
|
||||||
public async Task<ActionResult<ResponseObject>> GetListByKeycloak()
|
public async Task<ActionResult<ResponseObject>> GetListByKeycloak()
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
[HttpGet("user")]
|
[HttpGet("user")]
|
||||||
public async Task<ActionResult<ResponseObject>> GetListByProfile()
|
public async Task<ActionResult<ResponseObject>> GetListByProfile()
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
[HttpGet("user")]
|
[HttpGet("user")]
|
||||||
public async Task<ActionResult<ResponseObject>> GetListByProfile()
|
public async Task<ActionResult<ResponseObject>> GetListByProfile()
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
|
@ -185,7 +186,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
[HttpGet("user-cancel")]
|
[HttpGet("user-cancel")]
|
||||||
public async Task<ActionResult<ResponseObject>> GetListByProfileCancel()
|
public async Task<ActionResult<ResponseObject>> GetListByProfileCancel()
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||||
|
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue