keanacobarde / BEDuo

0 stars 0 forks source link

GET - USER + GET USER BY ID #4

Closed keanacobarde closed 5 months ago

keanacobarde commented 5 months ago

User Story

I, as a student or self-learner must be able to log into the application if I am an already authenticated user whose credentials are stored in the backend database. I, as a user, should also be able to see my user details within a profile page.

Acceptance Criteria

Dependencies

Dev Notes

- GET USER BY ID, DETAILS
```csharp
app.MapGet("/users/{id}", (int id) => {
    Users user = users.FirstOrDefault(u => u.Id == id);
    if (user == null)
    {
        return Results.NotFound();
    }
    return Results.Ok(user);
});
keanacobarde commented 5 months ago