{"action":"created","issue":{"url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/4","repository_url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio","labels_url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/4/comments","events_url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/4/events","html_url":"https://github.com/josimar2016/TQS_G3_Repositorio/pull/4","id":154140635,"number":4,"title":"Serviços Rest Atualizado referente a registo de profissionais","user":{"login":"diogoarrais","id":11707036,"avatar_url":"https://avatars.githubusercontent.com/u/11707036?v=3","gravatar_id":"","url":"https://api.github.com/users/diogoarrais","html_url":"https://github.com/diogoarrais","followers_url":"https://api.github.com/users/diogoarrais/followers","following_url":"https://api.github.com/users/diogoarrais/following{/other_user}","gists_url":"https://api.github.com/users/diogoarrais/gists{/gist_id}","starred_url":"https://api.github.com/users/diogoarrais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogoarrais/subscriptions","organizations_url":"https://api.github.com/users/diogoarrais/orgs","repos_url":"https://api.github.com/users/diogoarrais/repos","events_url":"https://api.github.com/users/diogoarrais/events{/privacy}","received_events_url":"https://api.github.com/users/diogoarrais/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T01:18:49Z","updated_at":"2016-05-11T12:29:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/pulls/4","html_url":"https://github.com/josimar2016/TQS_G3_Repositorio/pull/4","diff_url":"https://github.com/josimar2016/TQS_G3_Repositorio/pull/4.diff","patch_url":"https://github.com/josimar2016/TQS_G3_Repositorio/pull/4.patch"},"body":"Serviços Rest Atualizado referente a registo de profissionais"},"comment":{"url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/comments/218444881","html_url":"https://github.com/josimar2016/TQS_G3_Repositorio/pull/4#issuecomment-218444881","issue_url":"https://api.github.com/repos/josimar2016/TQS_G3_Repositorio/issues/4","id":218444881,"user":{"login":"tiagocoelhoua","id":18554615,"avatar_url":"https://avatars.githubusercontent.com/u/18554615?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagocoelhoua","html_url":"https://github.com/tiagocoelhoua","followers_url":"https://api.github.com/users/tiagocoelhoua/followers","following_url":"https://api.github.com/users/tiagocoelhoua/following{/other_user}","gists_url":"https://api.github.com/users/tiagocoelhoua/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagocoelhoua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagocoelhoua/subscriptions","organizations_url":"https://api.github.com/users/tiagocoelhoua/orgs","repos_url":"https://api.github.com/users/tiagocoelhoua/repos","events_url":"https://api.github.com/users/tiagocoelhoua/events{/privacy}","received_events_url":"https://api.github.com/users/tiagocoelhoua/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T12:29:54Z","updated_at":"2016-05-11T12:29:54Z","body":"Pelo que vi alteraste o registo normal para incluir o objecto service.\r\nO problema é que um cliente não tem seviço associado por isso não devia precisar disso.\r\n\r\nColoca um if type = \"professional\" cria o serviço, caso contrario fica com já estava.\r\n\r\nTesta no final os dois registos de forma a validar que ficam a funcionar!\r\n"}}