{"action":"opened","issue":{"url":"https://api.github.com/repos/zetapush/zetapush-next-open-specification/issues/43","repository_url":"https://api.github.com/repos/zetapush/zetapush-next-open-specification","labels_url":"https://api.github.com/repos/zetapush/zetapush-next-open-specification/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/zetapush/zetapush-next-open-specification/issues/43/comments","events_url":"https://api.github.com/repos/zetapush/zetapush-next-open-specification/issues/43/events","html_url":"https://github.com/zetapush/zetapush-next-open-specification/issues/43","id":312011145,"number":43,"title":"Permettre un accès HTTP à une Cloud Function","user":{"login":"damienld22","id":16623501,"avatar_url":"https://avatars1.githubusercontent.com/u/16623501?v=4","gravatar_id":"","url":"https://api.github.com/users/damienld22","html_url":"https://github.com/damienld22","followers_url":"https://api.github.com/users/damienld22/followers","following_url":"https://api.github.com/users/damienld22/following{/other_user}","gists_url":"https://api.github.com/users/damienld22/gists{/gist_id}","starred_url":"https://api.github.com/users/damienld22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienld22/subscriptions","organizations_url":"https://api.github.com/users/damienld22/orgs","repos_url":"https://api.github.com/users/damienld22/repos","events_url":"https://api.github.com/users/damienld22/events{/privacy}","received_events_url":"https://api.github.com/users/damienld22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-06T15:05:24Z","updated_at":"2018-04-06T15:05:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# Pré-requis\r\n\r\nOn a un _Custom cloud service_, qui est déployé : \r\n\r\n```javascript\r\nclass MyCustomService {\r\n\r\n   @GET(\"hello\");\r\n    function hello(name = \"User\") {\r\n        return `Hello ${name} !`;\r\n    }\r\n\r\n    @POST(\"hello\");\r\n    function test(name = \"User\") {\r\n        return `This is a test for ${name} !`;\r\n    }\r\n}\r\n```\r\n\r\n# Fonctionnement \r\n\r\nÀ la suite du déploiement avec `zeta push`, une URL est renvoyée (qui pointe sur l'application déployée): \r\n\r\nLe décorateur permet implicitement de faire une connexion **weak** (authentification anonyme).\r\n\r\n**https://myapp.app-zetapush.com/hello?name=toto**"}}
{"actor":{"display_login":"damienld22"}}