Skip to content

Commit c1b1840

Browse files
committed
[add] user ID display
1 parent 9d8d6f1 commit c1b1840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TesterApp/Controllers/Api/v1/Users/GetController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace TesterApp.Controllers.Api.v1.Users;
99

10-
[Get("/api/v1/users/{id:int}")]
10+
[Get("/api/v1/users/{id}")]
1111
[ApiVersion("1.0")]
1212
[ProducesResponse(StatusCodes.Status200OK, typeof(UserViewModel), "application/json")]
1313
[ProducesResponse(StatusCodes.Status500InternalServerError)]
@@ -16,7 +16,7 @@ public class GetController : Simplify.Web.Controller
1616
public override ControllerResponse Invoke() =>
1717
new Json(new UserViewModel
1818
{
19-
UserName = "User 1",
19+
UserName = $"User {RouteParameters.id}",
2020
CreationTime = DateTime.Now
2121
});
2222
}

0 commit comments

Comments
 (0)