Skip to content

JAndreja/dotnet-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet-todo

Test the GET endpoints

Test the app by calling the endpoints from a browser or Postman. The following steps are for Postman.

Create a new HTTP request. Set the HTTP method to GET. Set the request URI to https://localhost:/todoitems. For example, https://localhost:5001/todoitems. Select Send.

The call to GET /todoitems produces a response similar to the following:

[
  {
    "id": 1,
    "name": "walk dog",
    "isComplete": false
  }
]

Set the request URI to https://localhost:/todoitems/1. For example, https://localhost:5001/todoitems/1.

Select Send.

The response is similar to the following:

  {
    "id": 1,
    "name": "walk dog",
    "isComplete": false
  }

This app uses an in-memory database. If the app is restarted, the GET request doesn't return any data. If no data is returned, POST data to the app and try the GET request again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published