{"action":"created","issue":{"url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/20","repository_url":"https://api.github.com/repos/kenrube/Fantlab-API","labels_url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/20/comments","events_url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/20/events","html_url":"https://github.com/kenrube/Fantlab-API/issues/20","id":296139557,"number":20,"title":"Add user's rating to \"responses\" api","user":{"login":"Aivean","id":2865203,"avatar_url":"https://avatars1.githubusercontent.com/u/2865203?v=4","gravatar_id":"","url":"https://api.github.com/users/Aivean","html_url":"https://github.com/Aivean","followers_url":"https://api.github.com/users/Aivean/followers","following_url":"https://api.github.com/users/Aivean/following{/other_user}","gists_url":"https://api.github.com/users/Aivean/gists{/gist_id}","starred_url":"https://api.github.com/users/Aivean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aivean/subscriptions","organizations_url":"https://api.github.com/users/Aivean/orgs","repos_url":"https://api.github.com/users/Aivean/repos","events_url":"https://api.github.com/users/Aivean/events{/privacy}","received_events_url":"https://api.github.com/users/Aivean/received_events","type":"User","site_admin":false},"labels":[{"id":765794149,"url":"https://api.github.com/repos/kenrube/Fantlab-API/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"Mazian","id":5379752,"avatar_url":"https://avatars1.githubusercontent.com/u/5379752?v=4","gravatar_id":"","url":"https://api.github.com/users/Mazian","html_url":"https://github.com/Mazian","followers_url":"https://api.github.com/users/Mazian/followers","following_url":"https://api.github.com/users/Mazian/following{/other_user}","gists_url":"https://api.github.com/users/Mazian/gists{/gist_id}","starred_url":"https://api.github.com/users/Mazian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mazian/subscriptions","organizations_url":"https://api.github.com/users/Mazian/orgs","repos_url":"https://api.github.com/users/Mazian/repos","events_url":"https://api.github.com/users/Mazian/events{/privacy}","received_events_url":"https://api.github.com/users/Mazian/received_events","type":"User","site_admin":false},"assignees":[{"login":"Mazian","id":5379752,"avatar_url":"https://avatars1.githubusercontent.com/u/5379752?v=4","gravatar_id":"","url":"https://api.github.com/users/Mazian","html_url":"https://github.com/Mazian","followers_url":"https://api.github.com/users/Mazian/followers","following_url":"https://api.github.com/users/Mazian/following{/other_user}","gists_url":"https://api.github.com/users/Mazian/gists{/gist_id}","starred_url":"https://api.github.com/users/Mazian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mazian/subscriptions","organizations_url":"https://api.github.com/users/Mazian/orgs","repos_url":"https://api.github.com/users/Mazian/repos","events_url":"https://api.github.com/users/Mazian/events{/privacy}","received_events_url":"https://api.github.com/users/Mazian/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-02-10T22:19:54Z","updated_at":"2018-02-12T00:35:54Z","closed_at":null,"author_association":"NONE","body":"Currently both `user/{id}/responses` and `work/{id}/responses` APIs seem to lack user's rating.\r\n\r\nTo illustrate, here is a review from the site: \r\n![image](https://user-images.githubusercontent.com/2865203/36067137-1c0a71ae-0e6c-11e8-8381-e59ed8090597.png)\r\nIt has rating of \"10\".\r\n\r\nHere is the same review as seen via API: https://api.fantlab.ru/work/1/responses\r\n```json\r\n{\r\n\"name\": \"Hyperion\",\r\n\"posted_date\": \"2008-10-02 13:42:43\",\r\n\"response_id\": \"87270\",\r\n\"response_text\": \"Тот, кто будет читать этот роман как жанровую фантастику, будет разочарован. Будущее, космос, временнЫе парадоксы - это всё тут есть, но если читатель пассивно плывёт по сюжету и не пытается включиться в грандиозный спор, который ...\",\r\n\"rusname\": \"Гиперион\",\r\n\"user_id\": \"651\",\r\n\"user_name\": \"Barros\",\r\n\"user_sex\": \"1\",\r\n\"user_voted\": null,\r\n\"vote_minus\": \"0\",\r\n\"vote_plus\": \"84\",\r\n\"work_id\": \"1\",\r\n\"work_type_id\": \"1\"\r\n}\r\n```\r\nUser's rating is nowhere to be seen.  I have suspicion that the field `\"user_voted\": null,` is meant to represent user's rating, but currently it's always `null`.\r\n\r\nSame thing with [https://api.fantlab.ru/user/651/responses](https://api.fantlab.ru/user/651/responses). User's ratings are not present.\r\n\r\n----\r\n\r\nAlso, a question. Do \"response\" resources meant to have user votes in addition to reviews? I.e. if user just rates a particular item without writing a text review, will such rating be visible through either `user/{id}/responses` and `work/{id}/responses` APIs?  If not, how such votes can be accessed?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/comments/364806092","html_url":"https://github.com/kenrube/Fantlab-API/issues/20#issuecomment-364806092","issue_url":"https://api.github.com/repos/kenrube/Fantlab-API/issues/20","id":364806092,"user":{"login":"Aivean","id":2865203,"avatar_url":"https://avatars1.githubusercontent.com/u/2865203?v=4","gravatar_id":"","url":"https://api.github.com/users/Aivean","html_url":"https://github.com/Aivean","followers_url":"https://api.github.com/users/Aivean/followers","following_url":"https://api.github.com/users/Aivean/following{/other_user}","gists_url":"https://api.github.com/users/Aivean/gists{/gist_id}","starred_url":"https://api.github.com/users/Aivean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aivean/subscriptions","organizations_url":"https://api.github.com/users/Aivean/orgs","repos_url":"https://api.github.com/users/Aivean/repos","events_url":"https://api.github.com/users/Aivean/events{/privacy}","received_events_url":"https://api.github.com/users/Aivean/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T00:35:54Z","updated_at":"2018-02-12T00:35:54Z","author_association":"NONE","body":"Awesome!  That was a very fast turnaround.\r\n\r\nThanks, @Mazian and @kenrube! Feel free to close the issue."}}
{"actor":{"display_login":"Aivean"}}