-
Notifications
You must be signed in to change notification settings - Fork 30
API v1.0
KuiKui edited this page Apr 19, 2012
·
1 revision
GET : http://crew-server/api.php/projects
Parameters : none
Return (JSON array of projects) :
- id
- name
- repository
- remote
POST : http://crew-server/api.php/reviewRequest
Parameters :
- project-id = Crew project id (from addProject API)
- branch = feature branch
- base-branch = branch to diff with
- commit = feature branch commit to compare with base branch
Return JSON array :
- result = true or false
- message = message
GET : http://crew-server/api.php/reviewStatus
Parameters :
- project-id = Crew project id (from addProject API)
- branch = feature branch
- commit = feature branch commit to compare with base branch
Return JSON array :
-
result :
0 => review pending
1 => review OK
2 => review KO
-1 => error -
message = message