Repository navigation
wizawu edited this page Jun 6, 2015
·
13 revisions
POST /hooks
POST /account
Request
{ username: "wizawu",
password: "123456",
email: "wizawu@gmail.com"
}
Response
{ id: 1
}
POST /login
Request
{ username: "wizawu",
password: "123456"
}
GET /login
Request
{ id: 1,
username: "wizawu",
email: "wizawu@gmail.com"
}
GET /builds/active
GET /builds/search
Request
{ keyword: "archci"
}
GET /builds/:id/log
GET /builds/:id/log/:partId
Response
{ log: "apt-get install golang",
last: 10 // optional
}
POST /projects
Request
{ type: "github" | "gitlab" | ... ,
public: true | false,
url: "git@github.com:ArchCI/archci.git"
}
GET /projects
Response
[
{ id: 1
type: "github",
owner: "wizawu",
repository: "archici",
description: "Hello"
},
...
]
POST /images
Request
{ name: "debian-mysql",
dockerfile: "apt-get install -y mysql"
}
GET /images
Response
[
{ id: 1,
name: "debian",
size: 517233948,
dockerfile: "go version",
created: "2015-05-01T00:59:53.889834584Z",
url: "hub.archci.com/debian"
},
...
]
GET /images/:id
Response
{ id: 1,
name: "debian",
size: 517233948,
dockerfile: "go version",
created: "2015-05-01T00:59:53.889834584Z",
url: "hub.archci.com/debian"
}
GET /tasks
Response
[{
"id": 123, // Task ID
login: "wizawu", // optional
token: "67c38b2c25b8ec20ca373df176f217826c1acb80", // optional
type: "none" | "github" | ... ,
public: true,
project: archci
url: "git@github.com:ArchCI/archci.git",
commit: "ccf4d8b385117aab1e30b46bfa0d887f621b9423"
}]
Parameters
number
GET /tasks?number=1 will return one task.
PUT /tasks/:id
Request
{ status: 0
}