Browse Source

Update api url format.

pull/1401/head
maliming 7 years ago
parent
commit
ec233e9861
  1. 2
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserLookupController.cs
  2. 4
      modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/ProfileController.cs
  3. 6
      modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi/Volo/Abp/TenantManagement/TenantController.cs

2
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserLookupController.cs

@ -9,7 +9,7 @@ namespace Volo.Abp.Identity
[RemoteService] [RemoteService]
[Area("identity")] [Area("identity")]
[ControllerName("UserLookup")] [ControllerName("UserLookup")]
[Route("api/identity/user-lookups")] [Route("api/identity/users/lookup")]
public class IdentityUserLookupController : AbpController, IIdentityUserLookupAppService public class IdentityUserLookupController : AbpController, IIdentityUserLookupAppService
{ {
protected IIdentityUserLookupAppService LookupAppService { get; } protected IIdentityUserLookupAppService LookupAppService { get; }

4
modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/ProfileController.cs

@ -7,7 +7,7 @@ namespace Volo.Abp.Identity
[RemoteService] [RemoteService]
[Area("identity")] [Area("identity")]
[ControllerName("Profile")] [ControllerName("Profile")]
[Route("/api/identity/profiles")] [Route("/api/identity/my-profile")]
public class ProfileController : AbpController, IProfileAppService public class ProfileController : AbpController, IProfileAppService
{ {
private readonly IProfileAppService _profileAppService; private readonly IProfileAppService _profileAppService;
@ -30,7 +30,7 @@ namespace Volo.Abp.Identity
} }
[HttpPost] [HttpPost]
[Route("ChangePassword")] [Route("change-password")]
public Task ChangePasswordAsync(string currentPassword, string newPassword) public Task ChangePasswordAsync(string currentPassword, string newPassword)
{ {
return _profileAppService.ChangePasswordAsync(currentPassword, newPassword); return _profileAppService.ChangePasswordAsync(currentPassword, newPassword);

6
modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi/Volo/Abp/TenantManagement/TenantController.cs

@ -53,21 +53,21 @@ namespace Volo.Abp.TenantManagement
} }
[HttpGet] [HttpGet]
[Route("{id}/DefaultConnectionString")] [Route("{id}/default-connection-string")]
public Task<string> GetDefaultConnectionStringAsync(Guid id) public Task<string> GetDefaultConnectionStringAsync(Guid id)
{ {
return _service.GetDefaultConnectionStringAsync(id); return _service.GetDefaultConnectionStringAsync(id);
} }
[HttpPut] [HttpPut]
[Route("{id}/DefaultConnectionString")] [Route("{id}/default-connection-string")]
public Task UpdateDefaultConnectionStringAsync(Guid id, string defaultConnectionString) public Task UpdateDefaultConnectionStringAsync(Guid id, string defaultConnectionString)
{ {
return _service.UpdateDefaultConnectionStringAsync(id, defaultConnectionString); return _service.UpdateDefaultConnectionStringAsync(id, defaultConnectionString);
} }
[HttpDelete] [HttpDelete]
[Route("{id}/DefaultConnectionString")] [Route("{id}/default-connection-string")]
public Task DeleteDefaultConnectionStringAsync(Guid id) public Task DeleteDefaultConnectionStringAsync(Guid id)
{ {
return _service.DeleteDefaultConnectionStringAsync(id); return _service.DeleteDefaultConnectionStringAsync(id);

Loading…
Cancel
Save