Quickstart guide
- Create a new Web API Project
- Add a new model file in the path
Models\Todo.cs
and copy & paste the content from theModels\Todo.cs
gist file - Add a new controller file in the path
Controllers\TodoController.cs
and copy & paste the content from theControllers\TodoController.cs
gist file - Hit
Ctrl+F5
to start app without debugging - Navigate your web browser to http://localhost:52548/api/todo - Note: You may need to change the port
For more experience
- Go to https://www.getpostman.com/ and install Postman
- Click
Import
->Import From Link
and paste the link https://gist.githubusercontent.com/indyone/af32cd5c0a41f6a395b1b167897c7c21/raw/CodingSchool_TodoAPI_PostmanCollection.json - Fix the port in the URL of each request
- Experiment with some Todos!
Want to learn more?
- HTTP at Mozilla Developer Network - https://developer.mozilla.org/en-US/docs/Web/HTTP
- HTTP at Wikipedia - https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
- Roy Fielding's doctoral dissertation about REST - https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
- REST at Wikipedia - https://en.wikipedia.org/wiki/Representational_state_transfer
- Thoughts on RESTful API Design - http://restful-api-design.readthedocs.io/en/latest/
- WEB API tutorial by Microsoft - https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api
- Εισαγωγή στο JSON - http://www.json.org/json-el.html