{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3914","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3914/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3914/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3914/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3914","id":185874948,"number":3914,"title":"Support mapping on Handle.POST/PUSH","user":{"login":"malx122","id":913374,"avatar_url":"https://avatars.githubusercontent.com/u/913374?v=3","gravatar_id":"","url":"https://api.github.com/users/malx122","html_url":"https://github.com/malx122","followers_url":"https://api.github.com/users/malx122/followers","following_url":"https://api.github.com/users/malx122/following{/other_user}","gists_url":"https://api.github.com/users/malx122/gists{/gist_id}","starred_url":"https://api.github.com/users/malx122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malx122/subscriptions","organizations_url":"https://api.github.com/users/malx122/orgs","repos_url":"https://api.github.com/users/malx122/repos","events_url":"https://api.github.com/users/malx122/events{/privacy}","received_events_url":"https://api.github.com/users/malx122/received_events","type":"User","site_admin":false},"labels":[{"id":4413439,"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/question","name":"question","color":"02d7e1","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-28T09:12:32Z","updated_at":"2016-11-01T21:24:16Z","closed_at":null,"body":"Perfect for a \"messaging\" system between apps (right now we (mis)use GET for this which feels wrong and the mapping also requires answer from own app which makes it ugly and easy to miss for failure)\n\nI have found many applications where this type of messaging is convenient and in some cases even required.\n\nExample:\nApp1:\n\n```\n Self.POST(UriMapping.MappingUriPrefix + \"/app1_did_something_other_apps_might_want_to_respond_to/\" + \"whatIdid\");\n```\n\nApp2\n\n```\nHandle.POST(\"/app_2/handle_app1/{?}\", (Request req, String data) =>\n{\n  //Do something\n});\n\nUriMapping.Map(\"/app_2/handle_app1/@w\", UriMapping.MappingUriPrefix + \" \"/app1_did_something_other_apps_might_want_to_respond_to/@w\");\n```\n"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/257702571","html_url":"https://github.com/Starcounter/Starcounter/issues/3914#issuecomment-257702571","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3914","id":257702571,"user":{"login":"miyconst","id":6435556,"avatar_url":"https://avatars.githubusercontent.com/u/6435556?v=3","gravatar_id":"","url":"https://api.github.com/users/miyconst","html_url":"https://github.com/miyconst","followers_url":"https://api.github.com/users/miyconst/followers","following_url":"https://api.github.com/users/miyconst/following{/other_user}","gists_url":"https://api.github.com/users/miyconst/gists{/gist_id}","starred_url":"https://api.github.com/users/miyconst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyconst/subscriptions","organizations_url":"https://api.github.com/users/miyconst/orgs","repos_url":"https://api.github.com/users/miyconst/repos","events_url":"https://api.github.com/users/miyconst/events{/privacy}","received_events_url":"https://api.github.com/users/miyconst/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T21:24:15Z","updated_at":"2016-11-01T21:24:15Z","body":"I would like to review and refactor our current partial mapping and remove this kind of operations. It does not make sense to send any kind of requests GET or POST to communicate between apps on the same server.\r\n\r\nThe application communications should be done through database, the partials blending on a page should be done through `Starcounter.Partial.Retrieve`, and the application entry points should be defined with `Handle.GET`, `Handle.POST`.\r\n\r\n"}}
{"actor":{"display_login":"miyconst"}}