{"action":"closed","issue":{"url":"https://api.github.com/repos/Mr-DLib/mdl-server/issues/7","repository_url":"https://api.github.com/repos/Mr-DLib/mdl-server","labels_url":"https://api.github.com/repos/Mr-DLib/mdl-server/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Mr-DLib/mdl-server/issues/7/comments","events_url":"https://api.github.com/repos/Mr-DLib/mdl-server/issues/7/events","html_url":"https://github.com/Mr-DLib/mdl-server/issues/7","id":149658918,"number":7,"title":"Implement dummy GET related articles","user":{"login":"Joeran","id":2410381,"avatar_url":"https://avatars.githubusercontent.com/u/2410381?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeran","html_url":"https://github.com/Joeran","followers_url":"https://api.github.com/users/Joeran/followers","following_url":"https://api.github.com/users/Joeran/following{/other_user}","gists_url":"https://api.github.com/users/Joeran/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeran/subscriptions","organizations_url":"https://api.github.com/users/Joeran/orgs","repos_url":"https://api.github.com/users/Joeran/repos","events_url":"https://api.github.com/users/Joeran/events{/privacy}","received_events_url":"https://api.github.com/users/Joeran/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"MillahMau","id":17783507,"avatar_url":"https://avatars.githubusercontent.com/u/17783507?v=3","gravatar_id":"","url":"https://api.github.com/users/MillahMau","html_url":"https://github.com/MillahMau","followers_url":"https://api.github.com/users/MillahMau/followers","following_url":"https://api.github.com/users/MillahMau/following{/other_user}","gists_url":"https://api.github.com/users/MillahMau/gists{/gist_id}","starred_url":"https://api.github.com/users/MillahMau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MillahMau/subscriptions","organizations_url":"https://api.github.com/users/MillahMau/orgs","repos_url":"https://api.github.com/users/MillahMau/repos","events_url":"https://api.github.com/users/MillahMau/events{/privacy}","received_events_url":"https://api.github.com/users/MillahMau/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Mr-DLib/mdl-server/milestones/1","html_url":"https://github.com/Mr-DLib/mdl-server/milestones/0.1%20-%20Dummy%20Recommender%20System","labels_url":"https://api.github.com/repos/Mr-DLib/mdl-server/milestones/1/labels","id":1719750,"number":1,"title":"0.1 - Dummy Recommender System","description":"The very first version of Mr. DLib that provides always the same dummy recommendations, regardless of the requested data. The goal is to being able to provide a first impression to our partners. Once this milestone is done, the partners may start integrating the system on their side. Of course, some changes to the data format and URL structure still might occur.","creator":{"login":"Joeran","id":2410381,"avatar_url":"https://avatars.githubusercontent.com/u/2410381?v=3","gravatar_id":"","url":"https://api.github.com/users/Joeran","html_url":"https://github.com/Joeran","followers_url":"https://api.github.com/users/Joeran/followers","following_url":"https://api.github.com/users/Joeran/following{/other_user}","gists_url":"https://api.github.com/users/Joeran/gists{/gist_id}","starred_url":"https://api.github.com/users/Joeran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joeran/subscriptions","organizations_url":"https://api.github.com/users/Joeran/orgs","repos_url":"https://api.github.com/users/Joeran/repos","events_url":"https://api.github.com/users/Joeran/events{/privacy}","received_events_url":"https://api.github.com/users/Joeran/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2016-04-20T04:42:48Z","updated_at":"2016-05-28T09:02:53Z","due_on":"2016-05-26T15:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-20T04:57:42Z","updated_at":"2016-05-28T09:02:53Z","closed_at":"2016-05-28T09:02:53Z","body":"For the beginning, let's implement one simple hard-coded API call, namely:\r\n\r\nGET \r\n`https://api.mr-dlib.org/v1/documents/$document_id:String/related_documents/`\r\n\r\nExample: \r\n`https://api.mr-dlib.org/v1/documents/test-f3w342jh3j/related_documents/`\r\n\r\nReturns\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<related_articles>\r\n\t<related_article recommendation_id=\"98743224322\" original_document_id=\"test-f3w342jh3j\" suggested_rank=\"1\">\r\n\t\t<title>This is the title of a recommendation</title>\r\n\t\t<year>2001</year>\r\n\t\t<authors>John Doe and Max Mustermann</authors>\r\n\t\t<url>http://api.docear.org/recommendation/98743224322/?action=direct_forward</url>\r\n\t\t<fallback_url>http://partner.com/document/test-f3w342jh3j</fallback_url>\r\n\t\t<citation_count>12</citation_count>\r\n\t</related_article>\r\n\t<related_article recommendation_id=\"389723\" original_document_id=\"he3hj32jhh\" suggested_rank=\"2\">\r\n\t\t<title>This is the title of another recommendation</title>\r\n\t\t<year>2012</year>\r\n\t\t<authors>Rebecca Reb and Tanja Tan</authors>\r\n\t\t<url>http://api.docear.org/recommendation/389723/?action=direct_forward</url>\r\n\t\t<fallback_url>http://partner.com/document/he3hj32jhh</fallback_url>\r\n\t\t<citation_count>84</citation_count>\r\n\t</related_article>\r\n</related_articles>\r\n\r\n```\r\n\r\nFor now, everything can be hardcoded, i.e. whatever string is provided for $document_id, always the same XML file is returned."}}
{"actor":{"display_login":"Joeran"}}