{"action":"created","issue":{"url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/28","repository_url":"https://api.github.com/repos/bregySilvan/TabSolution","labels_url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/28/comments","events_url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/28/events","html_url":"https://github.com/bregySilvan/TabSolution/issues/28","id":303136193,"number":28,"title":"API specification","user":{"login":"bregySilvan","id":31403441,"avatar_url":"https://avatars0.githubusercontent.com/u/31403441?v=4","gravatar_id":"","url":"https://api.github.com/users/bregySilvan","html_url":"https://github.com/bregySilvan","followers_url":"https://api.github.com/users/bregySilvan/followers","following_url":"https://api.github.com/users/bregySilvan/following{/other_user}","gists_url":"https://api.github.com/users/bregySilvan/gists{/gist_id}","starred_url":"https://api.github.com/users/bregySilvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bregySilvan/subscriptions","organizations_url":"https://api.github.com/users/bregySilvan/orgs","repos_url":"https://api.github.com/users/bregySilvan/repos","events_url":"https://api.github.com/users/bregySilvan/events{/privacy}","received_events_url":"https://api.github.com/users/bregySilvan/received_events","type":"User","site_admin":false},"labels":[{"id":822537855,"url":"https://api.github.com/repos/bregySilvan/TabSolution/labels/architecture","name":"architecture","color":"ff8356","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-07T15:11:20Z","updated_at":"2018-03-14T06:07:56Z","closed_at":null,"author_association":"OWNER","body":"## Description\r\n- This issue is used to specify our API. Pls always update this issue when editing API or adding new locations to API.\r\n\r\n### Interfaces \r\n```\r\n IBoard {\r\n   title: string;\r\n   description: string;\r\n   imageURL: string;\r\n} \r\n```\r\n```\r\n IBoardInfo {\r\n   id: string;\r\n   title: string;\r\n} \r\n\r\n```\r\n### API\r\n| request type | location | payload | response |\r\n| ------------- | ------------- | ------------- | ------------- |\r\n| get   | ```/title}``` | ``` { } ``` |``` { titles: string[] }``` |\r\n| get   | ```/title/${id}``` | ``` { id: string } ``` |``` { title: string }``` |\r\n| get   | ```/data``` | ``` { } ``` |``` { data: any }``` |\r\n| get   | ```/board/${id}``` | ``` { id: string } ``` |``` { board: IBoard \\| null }``` |\r\n| get   | ```/boards``` | ``` { count: string } ``` |``` { boards: IBoard[] }``` |\r\n| get | ```/boardlist``` | ``` { } ``` |``` { boardInfos: IBoardInfo[] }``` |\r\n| post | ```/title/${id}``` | ``` { id: string } ``` |``` { error?: string }``` |\r\n\r\n\r\n\r\n\r\n\r\n## history\r\n13.03.2018 add ```/boardlist``` location for reading out all board titles with its ids.\r\n13.03.2018 add interface ```IBoardInfo``` which holds an id with a title. \r\n13.03.2018 change all numbers to strings\r\n"},"comment":{"url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/comments/372914944","html_url":"https://github.com/bregySilvan/TabSolution/issues/28#issuecomment-372914944","issue_url":"https://api.github.com/repos/bregySilvan/TabSolution/issues/28","id":372914944,"user":{"login":"olinator98","id":31204311,"avatar_url":"https://avatars3.githubusercontent.com/u/31204311?v=4","gravatar_id":"","url":"https://api.github.com/users/olinator98","html_url":"https://github.com/olinator98","followers_url":"https://api.github.com/users/olinator98/followers","following_url":"https://api.github.com/users/olinator98/following{/other_user}","gists_url":"https://api.github.com/users/olinator98/gists{/gist_id}","starred_url":"https://api.github.com/users/olinator98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olinator98/subscriptions","organizations_url":"https://api.github.com/users/olinator98/orgs","repos_url":"https://api.github.com/users/olinator98/repos","events_url":"https://api.github.com/users/olinator98/events{/privacy}","received_events_url":"https://api.github.com/users/olinator98/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T06:07:56Z","updated_at":"2018-03-14T06:07:56Z","author_association":"COLLABORATOR","body":"@bregySilvan Nice work, now our specification is identical with our code! Good job, cherio! #35 has been closed!"}}
{"actor":{"display_login":"olinator98"}}