-
Ce e HTTP?
-
Exemplu pe http://www.youtypeitwepostit.com/
-
Ce sunt Web APIs?
-
Exemplu pe http://www.youtypeitwepostit.com/api/
-
Creat controller with read/write actions, implementat Get
-
Văzut răspuns în browser (xml)
-
Fiddler, Composer, Accept: application/json
-
Implement Get(id)
-
Implement Post(), try from Fiddler:
POST http://localhost:56706/api/Books/ HTTP/1.1 Host: localhost:56706 Content-Type: application/json Accept: application/json {"Title": "Renaming of the Birds"} -
Implement Put(), try from Fiddler:
PUT http://localhost:56706/api/Books/9103c9dc-45b6-483e-bece-421565e74108 HTTP/1.1 Host: localhost:56706 Content-Type: application/json Accept: application/json { "Id": "9103c9dc-45b6-483e-bece-421565e74108", "Title": "Habibi", "Subtitle": "A graphic novel", "Publisher" : { "Id": "79d2a6a2-341a-44b0-991a-2a5bc8060e28", "Name": "Pantheon Books" }, "Authors": ["Craig Thompson"] }
-
Notifications
You must be signed in to change notification settings - Fork 0
ZeroToHero-2014/WebAPIBooks
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published