https://github.com/thaycacac/todo-api
The sample project for call api ASP.NET with GET, POST, PUT, DELETE
https://github.com/thaycacac/todo-api
api crud csharp sample-api sample-crud thaycacac
Last synced: 2 months ago
JSON representation
The sample project for call api ASP.NET with GET, POST, PUT, DELETE
- Host: GitHub
- URL: https://github.com/thaycacac/todo-api
- Owner: thaycacac
- License: mit
- Created: 2020-03-16T13:28:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T09:20:55.000Z (about 5 years ago)
- Last Synced: 2025-01-19T18:39:12.358Z (4 months ago)
- Topics: api, crud, csharp, sample-api, sample-crud, thaycacac
- Language: C#
- Homepage:
- Size: 485 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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**
```json
"ConnectionStrings": {
"DefaultConnection": "Server=DESKTOP-G4NBSB1;Database=TODOLIST;ConnectRetryCount=0;Trusted_Connection=True;MultipleActiveResultSets=true"
}
```Call api example
Init database

Get list task

Create new task

Update task

Delete task
