Skip to content

Instantly share code, notes, and snippets.

@keimlink
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save keimlink/d363ab8af0ba13d1f974 to your computer and use it in GitHub Desktop.
Save keimlink/d363ab8af0ba13d1f974 to your computer and use it in GitHub Desktop.
Hopper API JSON
{
"url": "http://example.com/api/23/",
"author": 1,
"date_created": "2015-03-26T11:01:23.262391Z",
"date_updated": "2015-03-26T11:01:23.262391Z",
"html": "<form></form>",
"javascript": "<script></script>",
"form": {
"id": "abc_123",
"method": "POST",
"action": "",
"enctype": "multipart/form-data",
"title": "A new form",
"help_text": "Lorem ipsum.",
"css_classes": "form inline",
"elements_css_classes": "form-control",
"elements": {
"title": {
"type": "input",
"label": "Title",
"placeholder": "Enter the title",
"weight": 1,
"immutable": false,
"readonly": false,
"required": true,
"maxlength": 50,
"default": ""
},
"description": {
"type": "textarea",
"label": "Description",
"placeholder": "Add your description here.",
"immutable": false,
"readonly": false,
"required": false,
"rows": "10",
"cols": "50"
},
"director": {
"type": "fieldset",
"label": "Director",
"immutable": false,
"clone": {
"extra": 2,
"max": 5,
"required": 3
},
"elements": {
"sex": {
"type": "radio",
"choices": ["female", "male"],
"immutable": false,
"readonly": false,
"required": true,
"weight": 3
},
"first_name": {
"type": "input",
"placeholder": "",
"immutable": false,
"readonly": false,
"required": true,
"weight": 1
},
"last_name": {
"type": "input",
"placeholder": "Last name",
"immutable": false,
"readonly": false,
"required": true,
"weight": 2
},
"vegetarian": {
"type": "checkbox",
"value": "Vegetarian",
"immutable": false,
"readonly": false,
"required": true,
"weight": 3,
"checked": false
}
}
}
}
}
}
@rm--
Copy link

rm-- commented Apr 20, 2015

That's the latest (both forks merged) version:
Please merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment