{"action":"opened","issue":{"url":"https://api.github.com/repos/lanit-tercom-school/studit/issues/27","repository_url":"https://api.github.com/repos/lanit-tercom-school/studit","labels_url":"https://api.github.com/repos/lanit-tercom-school/studit/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/lanit-tercom-school/studit/issues/27/comments","events_url":"https://api.github.com/repos/lanit-tercom-school/studit/issues/27/events","html_url":"https://github.com/lanit-tercom-school/studit/issues/27","id":219281288,"number":27,"title":"Пользователи","user":{"login":"Vetcher","id":10078725,"avatar_url":"https://avatars1.githubusercontent.com/u/10078725?v=3","gravatar_id":"","url":"https://api.github.com/users/Vetcher","html_url":"https://github.com/Vetcher","followers_url":"https://api.github.com/users/Vetcher/followers","following_url":"https://api.github.com/users/Vetcher/following{/other_user}","gists_url":"https://api.github.com/users/Vetcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Vetcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vetcher/subscriptions","organizations_url":"https://api.github.com/users/Vetcher/orgs","repos_url":"https://api.github.com/users/Vetcher/repos","events_url":"https://api.github.com/users/Vetcher/events{/privacy}","received_events_url":"https://api.github.com/users/Vetcher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Ivernylsi","id":11243876,"avatar_url":"https://avatars1.githubusercontent.com/u/11243876?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivernylsi","html_url":"https://github.com/Ivernylsi","followers_url":"https://api.github.com/users/Ivernylsi/followers","following_url":"https://api.github.com/users/Ivernylsi/following{/other_user}","gists_url":"https://api.github.com/users/Ivernylsi/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivernylsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivernylsi/subscriptions","organizations_url":"https://api.github.com/users/Ivernylsi/orgs","repos_url":"https://api.github.com/users/Ivernylsi/repos","events_url":"https://api.github.com/users/Ivernylsi/events{/privacy}","received_events_url":"https://api.github.com/users/Ivernylsi/received_events","type":"User","site_admin":false},"assignees":[{"login":"Ivernylsi","id":11243876,"avatar_url":"https://avatars1.githubusercontent.com/u/11243876?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivernylsi","html_url":"https://github.com/Ivernylsi","followers_url":"https://api.github.com/users/Ivernylsi/followers","following_url":"https://api.github.com/users/Ivernylsi/following{/other_user}","gists_url":"https://api.github.com/users/Ivernylsi/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivernylsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivernylsi/subscriptions","organizations_url":"https://api.github.com/users/Ivernylsi/orgs","repos_url":"https://api.github.com/users/Ivernylsi/repos","events_url":"https://api.github.com/users/Ivernylsi/events{/privacy}","received_events_url":"https://api.github.com/users/Ivernylsi/received_events","type":"User","site_admin":false},{"login":"teachmehowtoprogram","id":11275189,"avatar_url":"https://avatars0.githubusercontent.com/u/11275189?v=3","gravatar_id":"","url":"https://api.github.com/users/teachmehowtoprogram","html_url":"https://github.com/teachmehowtoprogram","followers_url":"https://api.github.com/users/teachmehowtoprogram/followers","following_url":"https://api.github.com/users/teachmehowtoprogram/following{/other_user}","gists_url":"https://api.github.com/users/teachmehowtoprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/teachmehowtoprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teachmehowtoprogram/subscriptions","organizations_url":"https://api.github.com/users/teachmehowtoprogram/orgs","repos_url":"https://api.github.com/users/teachmehowtoprogram/repos","events_url":"https://api.github.com/users/teachmehowtoprogram/events{/privacy}","received_events_url":"https://api.github.com/users/teachmehowtoprogram/received_events","type":"User","site_admin":false},{"login":"fedorovplaton","id":24392904,"avatar_url":"https://avatars0.githubusercontent.com/u/24392904?v=3","gravatar_id":"","url":"https://api.github.com/users/fedorovplaton","html_url":"https://github.com/fedorovplaton","followers_url":"https://api.github.com/users/fedorovplaton/followers","following_url":"https://api.github.com/users/fedorovplaton/following{/other_user}","gists_url":"https://api.github.com/users/fedorovplaton/gists{/gist_id}","starred_url":"https://api.github.com/users/fedorovplaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedorovplaton/subscriptions","organizations_url":"https://api.github.com/users/fedorovplaton/orgs","repos_url":"https://api.github.com/users/fedorovplaton/repos","events_url":"https://api.github.com/users/fedorovplaton/events{/privacy}","received_events_url":"https://api.github.com/users/fedorovplaton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-04-04T15:02:38Z","updated_at":"2017-04-04T15:02:38Z","closed_at":null,"body":"Определить какие поля модели *Пользователь* общедоступны, какие приватны, какие вообще нельзя отдавать\r\nРеализовать следующие юзкейсы:\r\n1. `GET` По `ID` пользователя получить информацию\r\n    * На запросы **не** *Владельца* отдавать только общедоступную информацию\r\n    * На запрос *Владельца* аккаунта отдавать приватную информацию\r\n    * На запрос *Куратора* проекта, на который записан *Пользователь* отдавать *Контакты пользователя*\r\n2. `GET` Без `ID` пользователя\r\n    * Отдавать только общедоступную информацию в сокрещенном виде (id, имя, картинку, etc...)\r\n    * Параметры запроса\r\n        * Количество объектов\r\n        * Номер, начиная с которого (**не** `ID`) отдавать, для реализации \"Постраничного просмотра\"\r\n        * Фильтр: Все, Пользователи, Кураторы\r\n        * Фильтр: Записаны на проект, Участники проекта на проект с номером `ID`\r\n            * При запросе от Куратора проекта прикреплять контактные данные Записавшихся/Участников\r\n        * Отдавать Пользователей в алфавитном порядке\r\n3. `POST` отсутствует, т.к. для этого предназначен механизм регистрации на портале\r\n4. `DELETE` отсутствует (пока что)\r\n5. `PUT` Обновить информацию *Пользователя* по `ID`\r\n    * Перезаписать информацию о Пользователе\r\n    * Отдельный механизм смены пароля, пароль должен быть прислан *Владельцем* аккаунта, с 2мя полями: старый и новый, если старый не совпадает с тем, что в бд, то отклонять запрос"}}
{"actor":{"display_login":"Vetcher"}}