READY. LOAD HYPERDUNGEON
James Pozenel
Senior Software Engineer
QLMS
Quicken Loans
@lectrotext @LunchBusDetroit
0. Swamp of Pox (RPC)
1. Resources
2. HTTP
3. HATEOAS
READY. Load HYPERDungeon You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here. >
{
"id": 1,
"room": "You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here."
}
{
"id": 1,
"room": "You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here."
}
accept-type
action
autocomplete
enctype
method
name
novalidate
target
Resource
Data + Metadata
{
"id": 5,
"name": "brown sack",
"description": "An elongated brown sack, smelling of hot peppers."
"type": "container",
"moveable": true,
"state": "closed",
"links": [
"self": {
"href":"http://hyperdungeon.com/items/5"
"title": "brown sack"
},
"index": {
"href":"http://hyperdungeon.com/items"
"title": "items"
}
]
}
Self and Index are universal to any ResourceYou are in an open field west of a big white house with a boarded front door. There is a small mailbox here. > open mailbox Opening the mailbox reveals: A leaflet. > look You are in an open field west of a big white house with a boarded front door. There is a small mailbox here. The mailbox contains: A leaflet.
POST http://hyperdungeon.com/items/1
{
"action":"open"
}
200 OK
GET http://hyperdungeon.com/items/1
{ "id": 1, "name": "small mailbox", "type": "container", "moveable": false, "state": "open", "links": [ "contents": { "href":"http://hyperdungeon.com/items/2",... ]
}
vnd.company.app-version+json
Seriously.
Write it.
Publish it.
Throw your specification on the pile.
Upsurge in attention over the past 2+ years.
Change will be constant.
Media Types are going to die.
HATEOAS is a collection of web
based technologies and strategies for easy
viewing and manipulating of data objects.
Presenting a familiar, interconnected, and
explorable experience for the developer
(aka - "The User").