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]
[Area("identity")]
[ControllerName("UserLookup")]
[Route("api/identity/user-lookups")]
[Route("api/identity/users/lookup")]
public class IdentityUserLookupController : AbpController, IIdentityUserLookupAppService
{
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]
[Area("identity")]
[ControllerName("Profile")]
[Route("/api/identity/profiles")]
[Route("/api/identity/my-profile")]
public class ProfileController : AbpController, IProfileAppService
{
private readonly IProfileAppService _profileAppService;
@ -30,7 +30,7 @@ namespace Volo.Abp.Identity
}
[HttpPost]
[Route("ChangePassword")]
[Route("change-password")]
public Task ChangePasswordAsync(string currentPassword, string 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]
[Route("{id}/DefaultConnectionString")]
[Route("{id}/default-connection-string")]
public Task<string> GetDefaultConnectionStringAsync(Guid id)
{
return _service.GetDefaultConnectionStringAsync(id);
}
[HttpPut]
[Route("{id}/DefaultConnectionString")]
[Route("{id}/default-connection-string")]
public Task UpdateDefaultConnectionStringAsync(Guid id, string defaultConnectionString)
{
return _service.UpdateDefaultConnectionStringAsync(id, defaultConnectionString);
}
[HttpDelete]
[Route("{id}/DefaultConnectionString")]
[Route("{id}/default-connection-string")]
public Task DeleteDefaultConnectionStringAsync(Guid id)
{
return _service.DeleteDefaultConnectionStringAsync(id);

Loading…
Cancel
Save