Skip to content

Commit 0dd7ae4

Browse files
committed
API: Improved http status code documentation on deletes.
1 parent a12a567 commit 0dd7ae4

7 files changed

+8
-8
lines changed

src/Exceptionless.Web/Controllers/EventController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ await _eventPostService.EnqueueAsync(new EventPost(_appOptions.EnableArchive)
13441344
/// Remove
13451345
/// </summary>
13461346
/// <param name="ids">A comma-delimited list of event identifiers.</param>
1347-
/// <response code="204">No Content.</response>
1347+
/// <response code="202">Accepted</response>
13481348
/// <response code="400">One or more validation errors occurred.</response>
13491349
/// <response code="404">One or more event occurrences were not found.</response>
13501350
/// <response code="500">An error occurred while deleting one or more event occurrences.</response>

src/Exceptionless.Web/Controllers/OrganizationController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public Task<ActionResult<ViewOrganization>> PatchAsync(string id, Delta<NewOrgan
169169
/// Remove
170170
/// </summary>
171171
/// <param name="ids">A comma-delimited list of organization identifiers.</param>
172-
/// <response code="204">No Content.</response>
172+
/// <response code="202">Accepted</response>
173173
/// <response code="400">One or more validation errors occurred.</response>
174174
/// <response code="404">One or more organizations were not found.</response>
175175
/// <response code="500">An error occurred while deleting one or more organizations.</response>

src/Exceptionless.Web/Controllers/ProjectController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using AutoMapper;
1+
using AutoMapper;
22
using Exceptionless.Core;
33
using Exceptionless.Core.Authorization;
44
using Exceptionless.Core.Billing;
@@ -183,7 +183,7 @@ public Task<ActionResult<ViewProject>> PatchAsync(string id, Delta<UpdateProject
183183
/// Remove
184184
/// </summary>
185185
/// <param name="ids">A comma-delimited list of project identifiers.</param>
186-
/// <response code="204">No Content.</response>
186+
/// <response code="202">Accepted</response>
187187
/// <response code="400">One or more validation errors occurred.</response>
188188
/// <response code="404">One or more projects were not found.</response>
189189
/// <response code="500">An error occurred while deleting one or more projects.</response>

src/Exceptionless.Web/Controllers/StackController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ await _webHookNotificationQueue.EnqueueAsync(new WebHookNotification
436436
/// Remove
437437
/// </summary>
438438
/// <param name="ids">A comma-delimited list of stack identifiers.</param>
439-
/// <response code="204">No Content.</response>
439+
/// <response code="202">Accepted</response>
440440
/// <response code="400">One or more validation errors occurred.</response>
441441
/// <response code="404">One or more stacks were not found.</response>
442442
/// <response code="500">An error occurred while deleting one or more stacks.</response>

src/Exceptionless.Web/Controllers/TokenController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public async Task<ActionResult<ViewToken>> PatchAsync(string id, Delta<UpdateTok
216216
/// Remove
217217
/// </summary>
218218
/// <param name="ids">A comma-delimited list of token identifiers.</param>
219-
/// <response code="204">No Content.</response>
219+
/// <response code="202">Accepted</response>
220220
/// <response code="400">One or more validation errors occurred.</response>
221221
/// <response code="404">One or more tokens were not found.</response>
222222
/// <response code="500">An error occurred while deleting one or more tokens.</response>

src/Exceptionless.Web/Controllers/UserController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public Task<ActionResult<WorkInProgressResult>> DeleteCurrentUserAsync()
138138
/// Remove
139139
/// </summary>
140140
/// <param name="ids">A comma-delimited list of user identifiers.</param>
141-
/// <response code="204">No Content.</response>
141+
/// <response code="202">Accepted</response>
142142
/// <response code="400">One or more validation errors occurred.</response>
143143
/// <response code="404">One or more users were not found.</response>
144144
/// <response code="500">An error occurred while deleting one or more users.</response>

src/Exceptionless.Web/Controllers/WebHookController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Task<ActionResult<WebHook>> PostAsync(NewWebHook webhook)
8282
/// Remove
8383
/// </summary>
8484
/// <param name="ids">A comma-delimited list of web hook identifiers.</param>
85-
/// <response code="204">No Content.</response>
85+
/// <response code="202">Accepted</response>
8686
/// <response code="400">One or more validation errors occurred.</response>
8787
/// <response code="404">One or more web hooks were not found.</response>
8888
/// <response code="500">An error occurred while deleting one or more web hooks.</response>

0 commit comments

Comments
 (0)