Skip to content

The sample project for call api ASP.NET with GET, POST, PUT, DELETE

License

Notifications You must be signed in to change notification settings

thaycacac/todo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple API ASP.NET

The sample project for call api containing api controllers. To test the project you will issue GET and POST to the api.

Requirements

.NET Core SDK v2.1.4 or newer A SQL Server database (Localdb or any modern version of SQL Server will work fine)

How to use

Edit server connection in appsettings.json

"ConnectionStrings": {
  "DefaultConnection": "Server=DESKTOP-G4NBSB1;Database=TODOLIST;ConnectRetryCount=0;Trusted_Connection=True;MultipleActiveResultSets=true"
}

Call api example

Init database

example 1

Get list task

example 2

Create new task

example 3

Update task

example 4

Delete task

example 5

About

The sample project for call api ASP.NET with GET, POST, PUT, DELETE

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages