Skip to content

Instantly share code, notes, and snippets.

@timshadel
Last active August 29, 2015 14:07
Show Gist options
  • Save timshadel/f83d743a07bd023cd43e to your computer and use it in GitHub Desktop.
Save timshadel/f83d743a07bd023cd43e to your computer and use it in GitHub Desktop.
{
"photos": {
"href": "/photos",
"count": 154,
"collection": [
{
"href": "...",
"type": "image/jpeg",
"name": "beach.jpg"
}
],
"new": {
"action": "/photos/new",
"method": "POST",
"enctype": "application/json",
"input": {
"name": {
"type": "text",
"maxlength": 255
},
"tags": {
"type": "text",
"maxlength": 255
},
"taken_at": {
"type": "datetime"
},
"photo": {
"type": "response",
"responseType": "text",
"request": {
"action": "https://gifted-files-upload-test.s3.amazonaws.com/",
"method": "POST",
"accept": "application/xml",
"enctype": "multipart/form-data",
"class": "aws-s3-upload",
"input": {
"acl": {
"type": "hidden",
"required": true,
"value": "private"
},
"content-type": {
"type": "text",
"required": true,
"pattern": "image/.*"
},
"cache-control": {
"type": "hidden",
"required": true,
"value": "private"
},
"key": {
"type": "text",
"required": true,
"value": "something__${filename}",
"pattern": "something_.*",
"maxlength": 255
},
"policy": {
"type": "hidden",
"required": true,
"value": "eyJleHBpcmF0aW9uIjoiMjAxNC0xMC0xNlQxODozNzozNS40ODZaIiwiY29uZGl0aW9ucyI6W1sic3RhcnRzLXdpdGgiLCIka2V5IiwidXBsb2Fkcy9zb21ldGhpbmdfIl0sWyJzdGFydHMtd2l0aCIsIiRDb250ZW50LVR5cGUiLCIiXSxbInN0YXJ0cy13aXRoIiwiJENvbnRlbnQtTGVuZ3RoIiwiIl0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMSwyMDk3MTUyXSx7ImJ1Y2tldCI6ImdpZnRlZC1maWxlcy11cGxvYWQtdGVzdCJ9LHsiYWNsIjoicHJpdmF0ZSJ9XX0="
},
"x-amz-algorithm": {
"type": "hidden",
"required": true,
"value": "AWS4-HMAC-SHA256"
},
"x-amz-credential": {
"type": "hidden",
"required": true,
"value": "AKIAJRBLYG7AL6IQLFWA/20141016/us-west-2/s3/aws4_request"
},
"x-amz-date": {
"type": "hidden",
"required": true,
"value": "20141016T171214Z"
},
"x-amz-signature": {
"type": "hidden",
"required": true,
"value": "2oeTxCoZOEjtnaFQp2y+mCqQt4Q="
},
"file": {
"type": "file",
"required": true,
"maxlength": 10485760
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment