Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to APIs

Intro to APIs

Intended as an introductory talk to explain how APIs work for a members of the RIT Society of Software Engineers beginning a rapid development weekend.

Ben Nicholas

March 14, 2012
Tweet

More Decks by Ben Nicholas

Other Decks in Programming

Transcript

  1. You need to consider: • low level networking concepts •

    data formatting • message formatting • when to read and write • ... Wednesday, March 14, 12
  2. • CONNECT • PUT • POST • HEAD • OPTIONS

    • GET • TRACE • DELETE Wednesday, March 14, 12
  3. Create HTTP Post to Resource POST /puppies Read HTTP GET

    from the resources or from an instance of the resource GET /puppies/1 Update HTTP PUT to the instance of the resource PUT /puppies/1 Delete HTTP DELETE to the instance of the resource DELETE /puppies/1 Wednesday, March 14, 12
  4. •XML • More easily validated • More libraries and support

    • More data to push across, and thus slower •JSON • Much smaller • Great support in most modern languages • To do it truly correctly, it has to go through a JS interpreter Wednesday, March 14, 12
  5. • REST • JSON Transport format • Python and Bottle

    implementation Wednesday, March 14, 12