A look at the preview
get/hosting/coder/projects/{id}/looks/{look}
A look at the preview: its pictures (signed links good for an hour), and for each page the console errors, failed requests and accessibility findings. The floor lists what can be put right without judging the design (a page that does not answer, a script error, a request of the site's own that fails, an accessibility rule broken in serious ways), and ask holds them as one request to send to the coder as a turn.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:read- Sdk
hosting.coderLook.get- Cli
hosting coder look get
Parameters
- idstring (uuid)requiredIn the path
- lookstringrequiredIn the path
Responses
- 200application/jsonSuccess
- lookobjectrequired
- idstringrequired
- statestringrequiredOne of: running, done, failed.
- errorstring
- previewstringrequired
- bundlestringrequired
- pageslist of objectEach page looked at: its pictures (signed links good for an hour), console errors, failed requests and accessibility findings, as Praecise Cloud gives them
- floorlist of objectrequiredWhat the look found that can be put right without judging the design
- checkstringrequired
- severitystringrequiredOne of: error, advice.
- pathstringrequired
- linenumber
- messagestringrequired
- askstringrequiredThe findings as one request to the coder, empty when there are none
- lookobjectrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring