{"action":"reopened","issue":{"url":"https://api.github.com/repos/kang0921ok/octopus/issues/17","repository_url":"https://api.github.com/repos/kang0921ok/octopus","labels_url":"https://api.github.com/repos/kang0921ok/octopus/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/kang0921ok/octopus/issues/17/comments","events_url":"https://api.github.com/repos/kang0921ok/octopus/issues/17/events","html_url":"https://github.com/kang0921ok/octopus/issues/17","id":360544646,"node_id":"MDU6SXNzdWUzNjA1NDQ2NDY=","number":17,"title":"API","user":{"login":"kang0921ok","id":5463687,"node_id":"MDQ6VXNlcjU0NjM2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5463687?v=4","gravatar_id":"","url":"https://api.github.com/users/kang0921ok","html_url":"https://github.com/kang0921ok","followers_url":"https://api.github.com/users/kang0921ok/followers","following_url":"https://api.github.com/users/kang0921ok/following{/other_user}","gists_url":"https://api.github.com/users/kang0921ok/gists{/gist_id}","starred_url":"https://api.github.com/users/kang0921ok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kang0921ok/subscriptions","organizations_url":"https://api.github.com/users/kang0921ok/orgs","repos_url":"https://api.github.com/users/kang0921ok/repos","events_url":"https://api.github.com/users/kang0921ok/events{/privacy}","received_events_url":"https://api.github.com/users/kang0921ok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kang0921ok","id":5463687,"node_id":"MDQ6VXNlcjU0NjM2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5463687?v=4","gravatar_id":"","url":"https://api.github.com/users/kang0921ok","html_url":"https://github.com/kang0921ok","followers_url":"https://api.github.com/users/kang0921ok/followers","following_url":"https://api.github.com/users/kang0921ok/following{/other_user}","gists_url":"https://api.github.com/users/kang0921ok/gists{/gist_id}","starred_url":"https://api.github.com/users/kang0921ok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kang0921ok/subscriptions","organizations_url":"https://api.github.com/users/kang0921ok/orgs","repos_url":"https://api.github.com/users/kang0921ok/repos","events_url":"https://api.github.com/users/kang0921ok/events{/privacy}","received_events_url":"https://api.github.com/users/kang0921ok/received_events","type":"User","site_admin":false},"assignees":[{"login":"kang0921ok","id":5463687,"node_id":"MDQ6VXNlcjU0NjM2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5463687?v=4","gravatar_id":"","url":"https://api.github.com/users/kang0921ok","html_url":"https://github.com/kang0921ok","followers_url":"https://api.github.com/users/kang0921ok/followers","following_url":"https://api.github.com/users/kang0921ok/following{/other_user}","gists_url":"https://api.github.com/users/kang0921ok/gists{/gist_id}","starred_url":"https://api.github.com/users/kang0921ok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kang0921ok/subscriptions","organizations_url":"https://api.github.com/users/kang0921ok/orgs","repos_url":"https://api.github.com/users/kang0921ok/repos","events_url":"https://api.github.com/users/kang0921ok/events{/privacy}","received_events_url":"https://api.github.com/users/kang0921ok/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-15T14:26:02Z","updated_at":"2018-10-01T17:43:32Z","closed_at":null,"author_association":"OWNER","body":"* 모든 API는 rest룰을 따르며, json형태로 제공됩니다.\r\n\r\n# **1. 기본 응답양식**\r\n  * 성공\r\n```\r\n{\r\n    \"code\": \"success\",\r\n    \"message\": \"\",\r\n    \"body\": null\r\n}\r\n```\r\n   * 실패\r\n```\r\n{\r\n    \"code\": \"fail\",\r\n    \"message\": \"\",\r\n    \"body\": null\r\n}\r\n```\r\n# **2. 회원**\r\n### 2-1. 회원가입 API \r\n* post /api/v1.0/user/join \r\n   * userId  / string\r\n   * userPwd / string\r\n* 예외 코드 \r\n```\r\n{\r\n    \"code\": \"already_exist\",\r\n    \"message\": \"\",\r\n    \"body\": null\r\n}\r\n```\r\n\r\n### 2-2. 로그인 API\r\n* post /api/v1.0/user/login \r\n   * userId / string \r\n   * userPwd / string\r\n\r\n# **3. 통계 서버 정보**\r\n### 3-1. 통계 서버 추가 및 수정API (upsert지원)\r\n* post /api/v1.0/admin/server\r\n   * serverName /  string \r\n   * serverIp / string \r\n   * serverHost /  string \r\n   * updateUserId  / string\r\n\r\n### 3-2. 등록 된 통계 서버 조회 API\r\n* get /api/v1.0/admin/server\r\n   * 서버 정보 전체 response \r\n\r\n# **4. 쿼리**\r\n### 4-1. 쿼리 추가 API\r\n* post /api/v1.0/query/{$userId}\r\n   * queryId / string\r\n   * queryName / string\r\n   * dimension / string\r\n   * metric / string\r\n   * userId / string\r\n\r\n### 4-2. 쿼리 select API\r\n* get /api/v1.0/query/{$userId}\r\n   * userId / string \r\n   * 쿼리 정보 전체 response \r\n\r\n### 4-3. 쿼리 update API\r\n* put /api/v1.0/query/{$userId}\r\n   * queryId / string\r\n   * queryName / string\r\n   * dimension / string\r\n   * metric / string\r\n   * userId / string\r\n\r\n# **5. connectDb**\r\n### 5-1. 초기 db연결\r\n* post /api/v1.0/dbConnect\r\n   * dbType / string\r\n   * ip / string\r\n   * port / string\r\n   * userName / string\r\n   * password / string\r\n\r\n# **6. logstash**\r\n### 6-1. 유저 로그 수집\r\n* post /api/v1.0/log/{$userId}\r\n   * secretKey / string\r\n   * body / map"}}
{"actor":{"display_login":"kang0921ok"}}