{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/json-server/issues/167","labels_url":"https://api.github.com/repos/typicode/json-server/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/typicode/json-server/issues/167/comments","events_url":"https://api.github.com/repos/typicode/json-server/issues/167/events","html_url":"https://github.com/typicode/json-server/issues/167","id":100176880,"number":167,"title":"Option to configure complex routes?","user":{"login":"shershen08","id":1363772,"avatar_url":"https://avatars.githubusercontent.com/u/1363772?v=3","gravatar_id":"","url":"https://api.github.com/users/shershen08","html_url":"https://github.com/shershen08","followers_url":"https://api.github.com/users/shershen08/followers","following_url":"https://api.github.com/users/shershen08/following{/other_user}","gists_url":"https://api.github.com/users/shershen08/gists{/gist_id}","starred_url":"https://api.github.com/users/shershen08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shershen08/subscriptions","organizations_url":"https://api.github.com/users/shershen08/orgs","repos_url":"https://api.github.com/users/shershen08/repos","events_url":"https://api.github.com/users/shershen08/events{/privacy}","received_events_url":"https://api.github.com/users/shershen08/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T21:49:17Z","updated_at":"2015-08-17T23:52:24Z","closed_at":null,"body":"According to API - making use of ```routes.json``` file settings can help to create aliaces for additional routes like - ```/blog/posts/1/show``` or ```/posts/1/comments```.\r\n\r\nBut is there a way to mock more sophisticated urls, say like - ```Data/Items/42/Document/346.json``` etc. ? Reason: besides modern clean APIs that are designed from scratch in some case there can be legacy APIs that your client side code has to be compatible with. "},"comment":{"url":"https://api.github.com/repos/typicode/json-server/issues/comments/131997695","html_url":"https://github.com/typicode/json-server/issues/167#issuecomment-131997695","issue_url":"https://api.github.com/repos/typicode/json-server/issues/167","id":131997695,"user":{"login":"typicode","id":5502029,"avatar_url":"https://avatars.githubusercontent.com/u/5502029?v=3","gravatar_id":"","url":"https://api.github.com/users/typicode","html_url":"https://github.com/typicode","followers_url":"https://api.github.com/users/typicode/followers","following_url":"https://api.github.com/users/typicode/following{/other_user}","gists_url":"https://api.github.com/users/typicode/gists{/gist_id}","starred_url":"https://api.github.com/users/typicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typicode/subscriptions","organizations_url":"https://api.github.com/users/typicode/orgs","repos_url":"https://api.github.com/users/typicode/repos","events_url":"https://api.github.com/users/typicode/events{/privacy}","received_events_url":"https://api.github.com/users/typicode/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T23:52:24Z","updated_at":"2015-08-17T23:52:24Z","body":"Hi @shershen08 \r\n\r\nSorry for the delay, wasn't in front of a computer during the past week.\r\nIf `Document` ids are unique, you can create the following route:\r\n\r\n```json\r\n{\r\n  \"/Data/Items/:itemId/Document/:id.json\": \"/Document/:id\"\r\n}\r\n```\r\n\r\n`:itemId` will be ignored.\r\n"}}