Skip to content

ZeroToHero-2014/WebAPIBooks

Repository files navigation

Plan de lecție

  1. Ce e HTTP?

  2. Exemplu pe http://www.youtypeitwepostit.com/

  3. Ce sunt Web APIs?

  4. Exemplu pe http://www.youtypeitwepostit.com/api/

  5. Creat controller with read/write actions, implementat Get

  6. Văzut răspuns în browser (xml)

  7. Fiddler, Composer, Accept: application/json

  8. Implement Get(id)

  9. 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"}
    
  10. 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"]
        }
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published