-
Notifications
You must be signed in to change notification settings - Fork 30
Projects API
KuiKui edited this page Jul 3, 2012
·
1 revision
GET http://crew-server/api.php/projects
Parameters : none
Return : JSON array of projects (code 200
)
[
{
"id":1,
"name":"Crew",
"repository":"Crew",
"remote":"git://github.com/pmsipilot/Crew.git"
},
{
"id":2,
"name":"MyLocalProject",
"repository":"MyLocalProject",
"remote":"/var/git/repositories/project.git"
}
]
GET http://crew-server/api.php/projects/:project_id
Parameters : none
Return : JSON array of project fields (code 200
) or message if it's failed (code 404
)
{
"id":1,
"name":"Crew",
"value":"Crew",
"remote":"git://github.com/pmsipilot/Crew.git"
}
PUT http://crew-server/api.php/projects/:project_id/clean
Parameters : none
Return : none (code 200
) or message if it's failed (code 400
)