Last active
August 29, 2015 14:18
-
-
Save keimlink/d363ab8af0ba13d1f974 to your computer and use it in GitHub Desktop.
Hopper API JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's the latest (both forks merged) version:
Please merge.