This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Example of HTTP microformat</title> | |
<meta name="author" content="[email protected]" /> | |
<style type="text/css"> | |
dl.http | |
{ | |
border: 1px solid black; | |
} | |
dl.http dt.request, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* some suggestions on implementing hyperlinks in json */ | |
// 5988-style (http://tools.ietf.org/html/rfc5988) | |
{ "link" : | |
{ | |
"href" : "...", | |
"rel" : "...", | |
"hreflang" : "...", | |
"media" : "...", | |
"title" : "...", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function(req, res){sayHello(req,res)}).listen(); | |
function sayHello(req,res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
} | |
function sayGoodbye(req,res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"queries" : | |
[ | |
{ | |
"href : "http://example.org/search", | |
"rel" : "search", | |
"prompt" : "Enter search string", | |
"data" : | |
[ | |
{"name" : "search", "value" : ""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- Hypermedia OAuth --> | |
<head> | |
<meta name="profile" content="http://amundsen.com/hypermedia/profiles/oauth" /> | |
<!-- | |
*** NOTES *** | |
Based on Facebook dev notes on OAuth interactions : http://developers.facebook.com/docs/authentication/ | |
This needs to be aligned w/ OAuth 2.0 docs : http://tools.ietf.org/html/draft-ietf-oauth-v2-16 | |
*** state values *** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for couch | |
var cradle = require('cradle'); | |
var host = 'https://xxxx.cloudant.com'; | |
var port = 443; | |
var credentials = {username: 'xxxx', password: 'xxxx' }; | |
var local=false; | |
var db; | |
if(local===true) { | |
db = new(cradle.Connection)().database('xxxx'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As the ecosystem of services on the Web continues to grow and evolve while, at the same time, the number and diversity of connected devices increases, challenges lie ahead for both providers and consumers of Web services. This paper focuses on two of these (sometimes opposing) challenges: immediate usability and long-term evolvability of the Web service itself. | |
Drawing from diverse sources including physical architecture, industrial design, the psychology of perception, and cross-cultural mono-myth, a new implementation paradigm is proposed to help software architects and developers meet these challenges; one that invites participants to shift their mental model from that of programming network devices to programming the network to which those devices are connected. | |
To accomplish this goal a “network language” is proposed; one that is based on shared understanding through network-oriented affordances instead of device-oriented APIs. Examples of this approach are given, possible outcomes examined, and area |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
simple patch document | |
- flat document model | |
- always assume //{name} will be sufficient (need not be unique) | |
- always treat <value>...</value> as a replacement, even when it includes child elements | |
- no guarantees on processing order (adds might execute before delete, etc.) | |
- referring to the same name twice in a document is illegal | |
--> | |
<patch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is step one: simple authentication and then consumption of basic data. | |
The client will be HTML, JS, and Mobile. | |
Logging In. | |
Customer comes to the app and logs in with email and password. | |
A token is returned by the server upon successful authentication and a | |
message is also received (like “thanks for logging in”). | |
Productions. | |
Joe User is logged in and wants to see what he can watch. He chooses to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- see docs at bottom of file --> | |
<html> | |
<head> | |
<title>Sample Conery API</title> | |
</head> | |
<body> | |
<!-- assume a starting URI of the server's choosing --> | |
OlderNewer