Skip to content

Commit d62be33

Browse files
authored
Update README.md
1 parent 3adbeea commit d62be33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It should also handle how the response data should be presented.
3737
/// </summary>
3838
[Authorize]
3939
[HttpPost]
40-
[SwaggerResponse(StatusCodes.Status200OK, Type = typeof(BaseResponse))]
40+
[SwaggerResponse(StatusCodes.Status201Created, Type = typeof(BaseResponse))]
4141
[SwaggerResponse(StatusCodes.Status400BadRequest, Type = typeof(BaseResponse))]
4242
[SwaggerResponse(StatusCodes.Status500InternalServerError, Type = typeof(BaseResponse))]
4343
public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryCommand command)
@@ -51,7 +51,7 @@ public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryCommand
5151
Success = resp.Success,
5252
Response = null,
5353
ErrorMessage = resp.Message,
54-
Code = resp.Success ? 200 : 400
54+
Code = resp.Success ? 201 : 400
5555
};
5656
}
5757
);

0 commit comments

Comments
 (0)