{ "score": "0.75", "numberOfEnquiries": 10 }
<creditcheck> <score>0.75</score> <numberOfEnquiries>10</numberOfEnquiries> </creditcheck>
<form action="{url}" (1) method="POST" (2) enctype="application/x-www-form-urlencoded"> (3) ... </form>
<p class="h-card"> (1) <img class="u-photo" src="..."/> (2) <a class="p-name u-url" href="..."> ... </a> (2) <a class="u-email" href="mailto:..."> ... </a> (2) <span class="p-street-address"> ... </span> (2) <span class="p-locality"> ... </span> (2) <span class="p-country-name"> ... </span> (2) </p> h-card class h-card
{ "class": [ "h-card" ], (1) "properties": { "name": "...", (2) "street-address": "...", (2) "locality": "...", (2) "country-name": "..." (2) }, ... } h-card h-card
{ ... "links" : [ { "rel" : [ "profile" ], "href" : "http://microformats.org/wiki/h-card"}, (1) { "rel" : [ "url" ], "href" : "..." }, (2) { "rel" : [ "email" ], "href" : "..." }, (2) { "rel" : [ "photo" ], "href" : "..." }, (2) { "rel" : [ "self" ], "href" : "..." } (2) ] } h-card h-card
{ "class": [ ... ], "properties": { ... }, "entities": [ ... ], "actions": [ ... ], "links": [ ... ] }
{ ... "actions": [ { ... "method": "POST", (1) "href": "{url}", (2) "type": "application/x-www-form-urlencoded", (3) ... ] } ], "links": [ { "rel": [ "self" ], "href": "{url}" }, (4) (5) ... ] } Content-Type GET type application/vnd.siren+json
{ "class": [ "order", "collection" ], (1) "properties": { "orderNumber": 42, (2) "itemCount": 3, (3) ... }, "entities": [ ... ], ... } order collection order collection
{ ... "actions": [ { "name": "add-item", (2) ... "fields": [ { "name": "orderNumber", "type": "...", "value": "..." }, (1) ... ] } ], "links": [ { "rel": [ "self" ], "href": "..." }, (3) ... ] } order collection
src ⇒ GET {src} <img src="http://www.example.org/images/logo" title="..." /> href ⇒ GET {href} <a href="http://www.example.org/search" title="..."> ... </a> method ⇒ GET <form action="/search" method="GET"> <label>Search term:</label> <input name="query" type="text" value="" /> <input type="submit" /> </form>
⇒ POST <form method="POST" action="..."/> ... </form> ⇒ PUT DELETE function delete(id) { var client = new XMLHttpRequest(); client.open("DELETE", "/records/"+id); }
accept ⇒ Accept <xsl:include href="http://www.exmaple.org/newsfeed" accept="application/rss" /> enctype ⇒ Content-Type <form method="..." action="..." enctype="application/x-www-form-urlencoded" /> ... </form> ⇒ GET POST <form method="POST" action="..." enctype="..." /> ... </form> rel ⇒ <a href="..." rel="search" title="..."> ... </a>
Recommend
More recommend