{"action":"created","issue":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/13","labels_url":"https://api.github.com/repos/NSwag/NSwag/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/NSwag/NSwag/issues/13/comments","events_url":"https://api.github.com/repos/NSwag/NSwag/issues/13/events","html_url":"https://github.com/NSwag/NSwag/issues/13","id":121016228,"number":13,"title":"Define own templates","user":{"login":"MaartenThomassen","id":14015955,"avatar_url":"https://avatars.githubusercontent.com/u/14015955?v=3","gravatar_id":"","url":"https://api.github.com/users/MaartenThomassen","html_url":"https://github.com/MaartenThomassen","followers_url":"https://api.github.com/users/MaartenThomassen/followers","following_url":"https://api.github.com/users/MaartenThomassen/following{/other_user}","gists_url":"https://api.github.com/users/MaartenThomassen/gists{/gist_id}","starred_url":"https://api.github.com/users/MaartenThomassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaartenThomassen/subscriptions","organizations_url":"https://api.github.com/users/MaartenThomassen/orgs","repos_url":"https://api.github.com/users/MaartenThomassen/repos","events_url":"https://api.github.com/users/MaartenThomassen/events{/privacy}","received_events_url":"https://api.github.com/users/MaartenThomassen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T14:21:13Z","updated_at":"2015-12-08T15:14:57Z","closed_at":null,"body":"Hey,\r\n\r\nThanks for creating this awesome project! I just integrated it into our development environment for generating the types our WebApi exposed for our Typescript project. It was exactly was I was looking for!\r\n\r\nI am currently generating only types, not xhr class definitions because we use a framework (Aurelia) for our Typescript project and do not use jquery. Also, we would like some other code bits injected in our xhr's (for example for file upload progress etc).\r\n\r\nI dug into your source code and noticed you use template files to generate the code (you currently use it to differentiate between Callbacks and Q). Would it be possible to add a method for us to allow us to use our own custom template file?\r\n\r\nIt's not a \"must\" in our current sprint so I don't have time to impelment it myself. If you don't have time, I might implement this in the future if we would require the functionality. However, I think this might be usefull for many others using NSwag to be able to define how they would like thier xhr request code to be generated (especially if you don't want to use the default jquery interface, or for people who would like to use the new fetch api instead of xhr).\r\n\r\nRegards,\r\nMaarten"},"comment":{"url":"https://api.github.com/repos/NSwag/NSwag/issues/comments/162911266","html_url":"https://github.com/NSwag/NSwag/issues/13#issuecomment-162911266","issue_url":"https://api.github.com/repos/NSwag/NSwag/issues/13","id":162911266,"user":{"login":"rsuter","id":2603405,"avatar_url":"https://avatars.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/rsuter","html_url":"https://github.com/rsuter","followers_url":"https://api.github.com/users/rsuter/followers","following_url":"https://api.github.com/users/rsuter/following{/other_user}","gists_url":"https://api.github.com/users/rsuter/gists{/gist_id}","starred_url":"https://api.github.com/users/rsuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsuter/subscriptions","organizations_url":"https://api.github.com/users/rsuter/orgs","repos_url":"https://api.github.com/users/rsuter/repos","events_url":"https://api.github.com/users/rsuter/events{/privacy}","received_events_url":"https://api.github.com/users/rsuter/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T15:14:57Z","updated_at":"2015-12-08T15:14:57Z","body":"Of course, you can create a pull request with a new template for Aurelia... My next template will be for Angular 1.x... I do not know how Aurelia handles HTTP but writing a new template should be pretty simple..."}}