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

PUT /time

PUT /time

Exploring how to represent resources through time with HTTP.

Larry Staton Jr.

September 15, 2012
Tweet

More Decks by Larry Staton Jr.

Other Decks in Technology

Transcript

  1. PUT /time PUT 2 Existing Resource 200 or 204 New

    Resource 201 Saturday, 15 September 12
  2. PUT /time PUT /favorite-food 3 New Resource 201 { ‘name’

    : ‘chocolate’ } Saturday, 15 September 12
  3. PUT /time PUT /favorite-food 4 Existing Resource 200 or 204

    { ‘name’ : ‘lasagna’ } Saturday, 15 September 12
  4. PUT /time PUT + TIME 5 Rich Hickey’s “Value of

    Values” Datomic: the database as a value Saturday, 15 September 12
  5. PUT /time PUT /favorite-food at t0 6 New Resource 201

    { ‘name’ : ‘chocolate’ } Saturday, 15 September 12
  6. PUT /time PUT /favorite-food at t1 7 Existing Resource? 200

    or 204 { ‘name’ : ‘lasagna’ } New Resource? 201 Saturday, 15 September 12
  7. PUT /time PUT + TIME 8 Datomic creates a new

    record for each transaction. Can query state at a specific point in time. Leans towards returning 201 Created for each PUT. Saturday, 15 September 12
  8. PUT /time Hypermedia 9 How might this look in hypermedia?

    “next” and “previous” link relations? A “past” link relation? Saturday, 15 September 12