Skip to content

Instantly share code, notes, and snippets.

@DebVortex
Forked from keimlink/hopper_api.json
Last active August 29, 2015 14:19
Show Gist options
  • Save DebVortex/a497553830c6d8bb3413 to your computer and use it in GitHub Desktop.
Save DebVortex/a497553830c6d8bb3413 to your computer and use it in GitHub Desktop.
{
"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": {
"label": "Sex",
"type": "radio",
"choices": ["female", "male"],
"immutable": false,
"readonly": false,
"required": true,
"weight": 3
},
"first_name": {
"label": "First Name",
"type": "input",
"placeholder": "",
"immutable": false,
"readonly": false,
"required": true,
"weight": 1
},
"last_name": {
"label": "Last Name",
"type": "input",
"placeholder": "Last name",
"immutable": false,
"readonly": false,
"required": true,
"weight": 2
},
"vegetarian": {
"Label": "Vegetarian",
"type": "checkbox",
"value": "Vegetarian",
"immutable": false,
"readonly": false,
"required": true,
"weight": 3,
"checked": false
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment