From f1b830142846e1ad889ddb328108132fbd7d674e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 11 Jul 2018 14:24:27 -0400 Subject: [PATCH] event page default is 50 --- src/Api/Controllers/OrganizationUsersController.cs | 6 ------ src/Core/Models/Data/PageOptions.cs | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Api/Controllers/OrganizationUsersController.cs b/src/Api/Controllers/OrganizationUsersController.cs index 2af90a40a..47f5cfb46 100644 --- a/src/Api/Controllers/OrganizationUsersController.cs +++ b/src/Api/Controllers/OrganizationUsersController.cs @@ -96,7 +96,6 @@ namespace Bit.Api.Controllers model.AccessAll, null, model.Collections?.Select(c => c.ToSelectionReadOnly())); } - [HttpPut("{id}/reinvite")] [HttpPost("{id}/reinvite")] public async Task Reinvite(string orgId, string id) { @@ -110,7 +109,6 @@ namespace Bit.Api.Controllers await _organizationService.ResendInviteAsync(orgGuidId, userId.Value, new Guid(id)); } - [HttpPut("{id}/accept")] [HttpPost("{id}/accept")] public async Task Accept(string orgId, string id, [FromBody]OrganizationUserAcceptRequestModel model) { @@ -123,7 +121,6 @@ namespace Bit.Api.Controllers var result = await _organizationService.AcceptUserAsync(new Guid(id), user, model.Token); } - [HttpPut("{id}/confirm")] [HttpPost("{id}/confirm")] public async Task Confirm(string orgId, string id, [FromBody]OrganizationUserConfirmRequestModel model) { @@ -138,7 +135,6 @@ namespace Bit.Api.Controllers } [HttpPut("{id}")] - [HttpPost("{id}")] public async Task Put(string orgId, string id, [FromBody]OrganizationUserUpdateRequestModel model) { var orgGuidId = new Guid(orgId); @@ -159,7 +155,6 @@ namespace Bit.Api.Controllers } [HttpPut("{id}/groups")] - [HttpPost("{id}/groups")] public async Task PutGroups(string orgId, string id, [FromBody]OrganizationUserUpdateGroupsRequestModel model) { var orgGuidId = new Guid(orgId); @@ -183,7 +178,6 @@ namespace Bit.Api.Controllers } [HttpDelete("{id}")] - [HttpPost("{id}/delete")] public async Task Delete(string orgId, string id) { var orgGuidId = new Guid(orgId); diff --git a/src/Core/Models/Data/PageOptions.cs b/src/Core/Models/Data/PageOptions.cs index d01ab656f..1b354932e 100644 --- a/src/Core/Models/Data/PageOptions.cs +++ b/src/Core/Models/Data/PageOptions.cs @@ -3,6 +3,6 @@ public class PageOptions { public string ContinuationToken { get; set; } - public int PageSize { get; set; } = 100; + public int PageSize { get; set; } = 50; } }