Skip to content

[Track 7/9] Get user #19

@taki-tiler-server

Description

@taki-tiler-server

Step 1/3 - The request

Estimated time: 2 hours

This is the first GET request you're going to implement on the project. After logging in and creating user, now it's time to provide an endpoint for fetching a user information. Some details:

  1. Route: GET /users/:id
  2. Path parameter: a user id
  3. It must be authenticated
  4. Response: a user, the same of the POST /users route.

Unlike the previous tracks, now you're going to write the request prototype and integrate with the database already.

NOTE: don't forget to predict error cases. In this endpoint, the most obvious one is passing an id that is not found on database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions