url 前缀:codehw
post /projects
{
"homeworkId": string
}
{
"data": [{ "projectId": string, "name": string }]
}
get /project/:id
{
"id": string,
"data": ProjectSerializer
}
get /build/:id
{
"id": string,
"data": BuildSerializer
}
see BuildSerializer
get /deploy/:id
{
"id": string,
"data": DeploySerializer
}
see DeploySerializer
get /unit/:id
{
"id": string,
"data": UnitTestSerializer
}
get /functional/:id
{
"id": string,
"data": FunctionalTestSerializer
}
get /mirrors/:homeworkId/:projectId
{
"data": MirrorSerializer[]
}
post /deploy
{
"homeworkId": string,
"projectId": string,
"mirrorId": string,
"arguments": { TBD }
}
{
"data": { "success": boolean }
}
post /functional
{
"homeworkId": string,
"projectId": string,
"deployId": string
}
{
"data": { "success": boolean }
}