In this topic, you’ll learn how to call the To-Do Service API to get a user by their user ID.
This tutorial takes 25 minutes to complete.
Complete the Before you start a tutorial to verify that you configured your development system to use the To-Do Service.
Parameter | Type | Description |
---|---|---|
id | Number | Returns the ID of the user |
Open GitHub Desktop.
Open your fork of the To-Do-service repository in your development system’s command line.
Start your local service:json-server -w to-do-db-source.json
Open the Postman desktop app.
Select GET from the method dropdown.
Call the service: http://localhost:3000/users/{id}
{
"last_name": "Jones",
"first_name": "Jill",
"email": "j.jones@example.com",
"id": 2
}