{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/client-js/issues/53","labels_url":"https://api.github.com/repos/WP-API/client-js/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/client-js/issues/53/comments","events_url":"https://api.github.com/repos/WP-API/client-js/issues/53/events","html_url":"https://github.com/WP-API/client-js/issues/53","id":121823997,"number":53,"title":"Setup models and collections dynamically based on the api schema","user":{"login":"adamsilverstein","id":2676022,"avatar_url":"https://avatars.githubusercontent.com/u/2676022?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsilverstein","html_url":"https://github.com/adamsilverstein","followers_url":"https://api.github.com/users/adamsilverstein/followers","following_url":"https://api.github.com/users/adamsilverstein/following{/other_user}","gists_url":"https://api.github.com/users/adamsilverstein/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsilverstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsilverstein/subscriptions","organizations_url":"https://api.github.com/users/adamsilverstein/orgs","repos_url":"https://api.github.com/users/adamsilverstein/repos","events_url":"https://api.github.com/users/adamsilverstein/events{/privacy}","received_events_url":"https://api.github.com/users/adamsilverstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-12T01:34:13Z","updated_at":"2015-12-14T03:48:17Z","closed_at":null,"body":"At the suggestion of @okofish and after reading the post about the discovery client from @rmccue , I decided to attempt a rewrite of the JavaScript library with this simple goal:  *instead of predefining models and collections, set them up dynamically based on the api schema*.\r\n\r\n[This branch](https://github.com/WP-API/client-js/tree/develop) is a work towards that goal. After loading the JS you will see a complete set of working endpoint models and collections:\r\n\r\n![Screenshot](http://cl.ly/312z1k202t2M/This_is_nice__Just_another_WordPress_site_2015-12-11_18-27-18.jpg)\r\n\r\nFeedback appreciated!"},"comment":{"url":"https://api.github.com/repos/WP-API/client-js/issues/comments/164334567","html_url":"https://github.com/WP-API/client-js/issues/53#issuecomment-164334567","issue_url":"https://api.github.com/repos/WP-API/client-js/issues/53","id":164334567,"user":{"login":"adamsilverstein","id":2676022,"avatar_url":"https://avatars.githubusercontent.com/u/2676022?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsilverstein","html_url":"https://github.com/adamsilverstein","followers_url":"https://api.github.com/users/adamsilverstein/followers","following_url":"https://api.github.com/users/adamsilverstein/following{/other_user}","gists_url":"https://api.github.com/users/adamsilverstein/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsilverstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsilverstein/subscriptions","organizations_url":"https://api.github.com/users/adamsilverstein/orgs","repos_url":"https://api.github.com/users/adamsilverstein/repos","events_url":"https://api.github.com/users/adamsilverstein/events{/privacy}","received_events_url":"https://api.github.com/users/adamsilverstein/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T03:48:17Z","updated_at":"2015-12-14T03:48:17Z","body":"In latest version I parse the endpoint GET and build model/collection options:  so Posts collection gets options of 'author, context, filter, order, orderby, page, per_page, search and status'\r\n"}}