The%20Atom%20Publishing%20Protocol%20Will%20Teach%20You%20REST%20 - PowerPoint PPT Presentation

About This Presentation
Title:

The%20Atom%20Publishing%20Protocol%20Will%20Teach%20You%20REST%20

Description:

The Atom Publishing Protocol. Will Teach You. REST & HTTP. AtomPub ... Use the Location:, Slug: header. Real, persistent URIs for Resources. Defined in RelaxNG ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 5
Provided by: kfahl
Category:

less

Transcript and Presenter's Notes

Title: The%20Atom%20Publishing%20Protocol%20Will%20Teach%20You%20REST%20


1
The Atom Publishing ProtocolWill Teach YouREST
HTTP
AtomPub
Again
2
HTTP Verbs
  • GET
  • POST
  • PUT
  • DELETE

3
AtomPub Workflow
  1. GET Service URL gt ltappservicegtappworkspace(ap
    pcollection)
  2. POST ltxmlgtBIN to a collectionltatomentrygt with
    edit URI gt 201
  3. PUT ltatomentrygt to edit URIltatomentrygt (update
    entry, if lucky)
  4. PUT ltxmlgtBIN to edit-media URI200 Ok
  5. GET edit URI gt ltatomentrygt
  6. GET edit-media URI gt ltxmlgtBIN
  7. DELETE to edit URI gt 200 Ok (or not)

4
Hipness
  • ltatomentrygt can contain arbitrary stuff (think
    RDF!)
  • Learn ETags and the If-Match header
  • Use the Location, Slug header
  • Real, persistent URIs for Resources
  • Defined in RelaxNG
Write a Comment
User Comments (0)
About PowerShow.com