Skip to content

API v1.0

KuiKui edited this page Apr 19, 2012 · 1 revision

List projects

GET : http://crew-server/api.php/projects

Parameters : none

Return (JSON array of projects) :

  • id
  • name
  • repository
  • remote

Request a review

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 review status

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

Clone this wiki locally