z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
for the meaning of
GET /photos/12/delete
GET /api/v1/sitemaps/check
?uri=http://www.zeldman.com
Host: http://w3clove.com
{
"created_at": "2012-01-30T01:17:04Z",
"scraped_at": "2012-01-30T01:17:10Z",
"scraping_success": true,
"url": "http://www.zeldman.com",
"web_pages_count": 57,
"validation_errors_count": 2951,
"validation_warnings_count": 8,
"web_pages": [{
"created_at": "2012-01-30T01:17:09Z",
"url": "http://www.zeldman.com/",
...
GET /api/v1/web_pages/check
?uri=http://www.zeldman.com/2011/12/23/hitler-reacts-to-sopa/
Host: http://w3clove.com
Web Pages
Sitemaps
Media type design is just as much an art as it is a science.
application/vnd.w3clove.validation+json
{
"created_at": "2012-01-30T01:17:04Z",
"scraped_at": "2012-01-30T01:17:10Z",
"scraping_success": true,
"url": "http://www.zeldman.com",
A response MAY contain created_at
, scraped_at
, scraping_success
, updated_at
, url
, web_pages_count
, validation_errors_count
, validation_warnings_count
, and pending_count
elements.
A response MAY include a forms
element, which is an array of objects. They MUST have these elements: href
, rel
, and data
elements. data
will be an array of objects that MUST have two keys, name
, and value
.
sitemap-form
: Following a link with this rel will lead you to a resource with a form for generating a Sitemap API request.sitemap
: Processing a form with this rel will lead you to a resource that gives you validation information about a sitemap. request("http://w3clove.com/api/",
"application/vnd.w3clove.validation+json")
# =>
{
"links":[
{"rel":"website-form", "href":"..."},
{"rel":"sitemap-form", "href":"..."}
]
}
uri = response["links"].find {|link|
link["rel"] == "sitemap-form"
}["href"]
request(uri,
"application/vnd.w3clove.validation+json")
# =>
{
"forms":[
{"href":"...",
"rel":"sitemap",
"data":[
"name":"check",
"value":""]}
]
}