{"action":"created","issue":{"url":"https://api.github.com/repos/cybertk/abao/issues/32","labels_url":"https://api.github.com/repos/cybertk/abao/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cybertk/abao/issues/32/comments","events_url":"https://api.github.com/repos/cybertk/abao/issues/32/events","html_url":"https://github.com/cybertk/abao/issues/32","id":72892415,"number":32,"title":"Hook file is not working","user":{"login":"agrover8","id":12200228,"avatar_url":"https://avatars.githubusercontent.com/u/12200228?v=3","gravatar_id":"","url":"https://api.github.com/users/agrover8","html_url":"https://github.com/agrover8","followers_url":"https://api.github.com/users/agrover8/followers","following_url":"https://api.github.com/users/agrover8/following{/other_user}","gists_url":"https://api.github.com/users/agrover8/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover8/subscriptions","organizations_url":"https://api.github.com/users/agrover8/orgs","repos_url":"https://api.github.com/users/agrover8/repos","events_url":"https://api.github.com/users/agrover8/events{/privacy}","received_events_url":"https://api.github.com/users/agrover8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-04T01:03:07Z","updated_at":"2015-05-05T15:37:04Z","closed_at":null,"body":"Hi,\r\n\r\nI have created hook coffee script which looks like abao is not reading.\r\n\r\nMy RAML File look like:\r\n\r\n~~~\r\n#%RAML 0.8\r\nbaseUri: https://test.com/ssvui\r\ntitle: Origin Api\r\nversion: 0.1\r\n\r\nresourceTypes:\r\n   - collection:\r\n      description: |\r\n        The <<resourcePathName>> collection.\r\n      get:\r\n        description: Get a list of <<resourcePathName>>.\r\n        headers: &commonHeaders\r\n          content-type:\r\n            displayName: Content Type\r\n            description: MIME type of document being served.\r\n            example: \"application/json\"\r\n\r\n          accept:\r\n            displayName: Accept\r\n            description: MIME types that client is willing to accept.\r\n            example: \"*/*\"\r\n        responses:\r\n          200:\r\n          500:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\"message\": \"Internal server error\" }\r\n      post:\r\n        headers: *commonHeaders\r\n        description: |\r\n          TBD\r\n        body:\r\n          application/json:\r\n            example: <<exampleItemForCreate>>\r\n        responses:\r\n          200:\r\n          302:\r\n          500:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\"message\": \"Internal server error\" }\r\n\r\n/j_spring_security_check:\r\n    description: | \r\n      Login\r\n    post:\r\n        headers:\r\n          accept:\r\n            displayName: Accept\r\n            description: MIME types that client is willing to accept.\r\n            example: \"*/*\"\r\n        queryParameters:\r\n          j_username:\r\n            description: QA_Autotest\r\n            example: QA_Autotest\r\n          j_password:\r\n            description: QA_aut0test\r\n            example: QA_aut0test\r\n          response:\r\n            description: light\r\n            example: light\r\n        body:\r\n          application/json:\r\n        responses:\r\n          302:\r\n            body:\r\n              application/json:\r\n                #schema: security\r\n/auth:\r\n    description: |\r\n      Auth\r\n    get:\r\n        headers:\r\n          accept:\r\n            displayName: Accept\r\n            description: MIME types that client is willing to accept.\r\n            example: \"*/*\"\r\n        responses:\r\n          200:\r\n            body:\r\n              application/json:\r\n\r\n/org/15602/activity:\r\n  /{activityid}:\r\n    description: |\r\n      Activity\r\n    get:\r\n       headers:\r\n         accept:\r\n           displayName: Accept\r\n           description: MIME types that client is willing to accept.\r\n           example: \"*/*\"\r\n       queryParameters:\r\n         activityid:\r\n           description: Activity\r\n           example: 55493526\r\n       responses:\r\n          200:\r\n            body:\r\n              application/json:\r\n~~~\r\n\r\nHook file:\r\n\r\n~~~\r\n{before, after} = require 'hooks'\r\n\r\nbefore 'GET /j_spring_security_check -> 302', (test, done) ->\r\n test.request.params =\r\n  j_username: 'username'\r\n  j_pasword: 'test'\r\n  response: 'light'\r\n done()\r\n\r\nbefore 'GET /org/15602/activity/{activityid} -> 200', (test, done) ->\r\n test.request.params =\r\n  activityid: '123'\r\n done()\r\n\r\nbefore 'GET /org/15602/activity/{activityid} -> 200', (test, done) ->\r\n test.request.params =\r\n  activityid: 'XYZ'\r\n done()\r\n~~~\r\nCan anyone help me on this?"},"comment":{"url":"https://api.github.com/repos/cybertk/abao/issues/comments/99119008","html_url":"https://github.com/cybertk/abao/issues/32#issuecomment-99119008","issue_url":"https://api.github.com/repos/cybertk/abao/issues/32","id":99119008,"user":{"login":"agrover8","id":12200228,"avatar_url":"https://avatars.githubusercontent.com/u/12200228?v=3","gravatar_id":"","url":"https://api.github.com/users/agrover8","html_url":"https://github.com/agrover8","followers_url":"https://api.github.com/users/agrover8/followers","following_url":"https://api.github.com/users/agrover8/following{/other_user}","gists_url":"https://api.github.com/users/agrover8/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover8/subscriptions","organizations_url":"https://api.github.com/users/agrover8/orgs","repos_url":"https://api.github.com/users/agrover8/repos","events_url":"https://api.github.com/users/agrover8/events{/privacy}","received_events_url":"https://api.github.com/users/agrover8/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T15:37:04Z","updated_at":"2015-05-05T15:37:04Z","body":"@cybertk \r\nThere are some instances where we need to pass the response data from one resource to request data, query parameters, uriParameters to other resource, is that possible in ABAO?"}}