{"action":"created","issue":{"url":"https://api.github.com/repos/fortunejs/fortune/issues/77","labels_url":"https://api.github.com/repos/fortunejs/fortune/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/fortunejs/fortune/issues/77/comments","events_url":"https://api.github.com/repos/fortunejs/fortune/issues/77/events","html_url":"https://github.com/fortunejs/fortune/issues/77","id":86903005,"number":77,"title":"type names not used correctly in URLs","user":{"login":"ninjatronic","id":4722391,"avatar_url":"https://avatars.githubusercontent.com/u/4722391?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjatronic","html_url":"https://github.com/ninjatronic","followers_url":"https://api.github.com/users/ninjatronic/followers","following_url":"https://api.github.com/users/ninjatronic/following{/other_user}","gists_url":"https://api.github.com/users/ninjatronic/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjatronic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjatronic/subscriptions","organizations_url":"https://api.github.com/users/ninjatronic/orgs","repos_url":"https://api.github.com/users/ninjatronic/repos","events_url":"https://api.github.com/users/ninjatronic/events{/privacy}","received_events_url":"https://api.github.com/users/ninjatronic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T09:26:22Z","updated_at":"2015-06-14T11:09:25Z","closed_at":"2015-06-11T06:05:59Z","body":"v1.0.0-alpha.9, with the following code...\r\n\r\n```javascript\r\nfortune.defineType('region',{\r\n  actions: {\r\n    link: 'action',\r\n    inverse: 'region',\r\n    isArray: true\r\n  },\r\n  name: {\r\n    type: String\r\n  }\r\n});\r\nfortune.defineType('action',{\r\n  region: {\r\n    link: 'region',\r\n    inverse: 'action'\r\n  },\r\n  name: {\r\n    type: String\r\n  }\r\n});\r\n```\r\n\r\nA `GET` to `/` gives...\r\n\r\n```json\r\n{\r\n  \"@links\":{\r\n    \"region\":{\r\n      \"@href\":\"/cmVnaW9ucw\",\r\n      \"actions\":{\r\n        \"@type\":\"action\",\r\n        \"@array\":true,\r\n        \"@inverse\":\"region\"\r\n      }\r\n    },\r\n    \"action\":{\r\n      \"@href\":\"/YWN0aW9ucw\",\r\n      \"region\":{\r\n        \"@type\":\"region\",\r\n        \"@array\":false,\r\n        \"@inverse\":\"actions\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nA `GET` to `/actions` or `/action` gives...\r\n\r\n```json\r\n{\r\n  \"@error\":{\r\n    \"name\":\"NotFoundError\",\r\n    \"message\":\"The requested type \\\"i�b�\\\" is not a valid type.\"\r\n  }\r\n}\r\n```\r\n\r\nA `GET` to `/YWN0aW9ucw` gives the expected result."},"comment":{"url":"https://api.github.com/repos/fortunejs/fortune/issues/comments/111813093","html_url":"https://github.com/fortunejs/fortune/issues/77#issuecomment-111813093","issue_url":"https://api.github.com/repos/fortunejs/fortune/issues/77","id":111813093,"user":{"login":"ninjatronic","id":4722391,"avatar_url":"https://avatars.githubusercontent.com/u/4722391?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjatronic","html_url":"https://github.com/ninjatronic","followers_url":"https://api.github.com/users/ninjatronic/followers","following_url":"https://api.github.com/users/ninjatronic/following{/other_user}","gists_url":"https://api.github.com/users/ninjatronic/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjatronic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjatronic/subscriptions","organizations_url":"https://api.github.com/users/ninjatronic/orgs","repos_url":"https://api.github.com/users/ninjatronic/repos","events_url":"https://api.github.com/users/ninjatronic/events{/privacy}","received_events_url":"https://api.github.com/users/ninjatronic/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T11:09:25Z","updated_at":"2015-06-14T11:09:25Z","body":"Thanks"}}