-
Notifications
You must be signed in to change notification settings - Fork 0
API docs
Lim jun su edited this page Nov 3, 2017
·
5 revisions
Welcome to the Osori-HackDay wiki!
-
method: FORM-POST
-
path:
/login -
send parameter
"name": (string) -
response
-> redirection
-
method: GET
-
path:
/repo -
response
[(Repository0), (Repository1), ...]// Repository ```javascript { "name": (string), // repository name "link": (string), // repository link "repo_size": (number), // repository size (unit KB) "star": (number), // repository star count "commit": (number), "users": [(Contributor0), (Contributor1), ...], // repository contributors .. - contributor 객체는 밑에 정의 됨 } ``` // Contributor ```javascript { "name": (string), // contributor name "commit": (number), // contributor commit count on this repository "link": (string), // contributor profile link } ```
현재 best contributor 와 best commit repository 를 보여준다
-
method: GET
-
path:
/awesome -
response
{ "best_commit_contributor": (Contributor) "best_commit_repo": (Repository) }
-
method: websocket
-
path:
/conn -
send to server
send chat
{ "name": (string), "message": (string), "type": "message" } -
receive from server
receive chat
{ "name": (string), "message": (string), "type": "message" }receive notice
{ "title": (string), "message": (string), "type": "notice" }