coco-backend API (0.1.0)

Download OpenAPI specification:Download

Create a team

Request Body schema: application/json
name
string
courseId
string

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "courseId": "string"
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "courseId": "a6aaec24-4fe5-49f2-8b74-509d2f931acc",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get a team

path Parameters
id
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "courseId": "a6aaec24-4fe5-49f2-8b74-509d2f931acc",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get image links of materials uploaded to the specified team

path Parameters
id
required
string <uuid>

Responses

Response samples

Content type
application/json
[
  • "string"
]

Upload a PDF file

path Parameters
id
required
string <uuid>
Request Body schema: multipart/form-data
file
string <binary>

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",
  • "url": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}