Doatask API v0.8
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
The doatask API description. Please note that due to a swagger limitation the relations of the entities are not correctly displayed.
Base URLs:
Default
LtiController_create
Code samples
fetch('/doatask/api/ltiadmin/platform',
{
method: 'POST'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
POST /doatask/api/ltiadmin/platform
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
UsersController_create
Code samples
const inputBody = '{
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"ltiid": 0,
"isActive": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/users',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
POST /doatask/api/users
Body parameter
{
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"ltiid": 0,
"isActive": true
}
2
3
4
5
6
7
8
9
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateUserDto | true | none |
Example responses
201 Response
{
"submissions": 0,
"id": 0,
"ltiid": 0,
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"isActive": true
}
2
3
4
5
6
7
8
9
10
11
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | User |
UsersController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/users',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/users
Example responses
200 Response
[
{
"submissions": 0,
"id": 0,
"ltiid": 0,
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"isActive": true
}
]
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [User] | false | none | none |
| » submissions | number | true | none | none |
| » id | number | true | none | none |
| » ltiid | number | true | none | none |
| » name | string | true | none | none |
| » password | string | true | none | none |
| string | true | none | none | |
| » role | string | true | none | none |
| » origin | string | true | none | none |
| » isActive | boolean | true | none | none |
UsersController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/users/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/users/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | true | none |
Example responses
200 Response
{
"submissions": 0,
"id": 0,
"ltiid": 0,
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"isActive": true
}
2
3
4
5
6
7
8
9
10
11
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | User |
UsersController_update
Code samples
const inputBody = '{
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"ltiid": 0,
"isActive": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/users/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PATCH /doatask/api/users/{id}
Body parameter
{
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"ltiid": 0,
"isActive": true
}
2
3
4
5
6
7
8
9
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | CreateUserDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
UsersController_remove
Code samples
fetch('/doatask/api/users/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/users/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
TasksController_create
Code samples
const inputBody = '{
"title": "string",
"description": "string",
"public": true,
"plugin": "string",
"details": {},
"domain": 0,
"tags": [
"string"
],
"rating": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/tasks',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
POST /doatask/api/tasks
Body parameter
{
"title": "string",
"description": "string",
"public": true,
"plugin": "string",
"details": {},
"domain": 0,
"tags": [
"string"
],
"rating": 0
}
2
3
4
5
6
7
8
9
10
11
12
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateTaskDto | true | none |
Example responses
201 Response
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Task |
TasksController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/tasks',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/tasks
Example responses
200 Response
[
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Task] | false | none | none |
| » assignmentTasks | number | true | none | none |
| » submissions | number | true | none | none |
| » domain | number | true | none | none |
| » owner | number | true | none | none |
| » id | number | true | none | none |
| » title | string | true | none | none |
| » description | string | true | none | none |
| » public | boolean | true | none | none |
| » rating | number | true | none | none |
| » tags | [string] | true | none | none |
| » plugin | string | true | none | none |
| » details | object | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
TasksController_findUserAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/tasks/user/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/tasks/user/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Task] | false | none | none |
| » assignmentTasks | number | true | none | none |
| » submissions | number | true | none | none |
| » domain | number | true | none | none |
| » owner | number | true | none | none |
| » id | number | true | none | none |
| » title | string | true | none | none |
| » description | string | true | none | none |
| » public | boolean | true | none | none |
| » rating | number | true | none | none |
| » tags | [string] | true | none | none |
| » plugin | string | true | none | none |
| » details | object | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
TasksController_findStudentAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/tasks/student/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/tasks/student/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Task] | false | none | none |
| » assignmentTasks | number | true | none | none |
| » submissions | number | true | none | none |
| » domain | number | true | none | none |
| » owner | number | true | none | none |
| » id | number | true | none | none |
| » title | string | true | none | none |
| » description | string | true | none | none |
| » public | boolean | true | none | none |
| » rating | number | true | none | none |
| » tags | [string] | true | none | none |
| » plugin | string | true | none | none |
| » details | object | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
TasksController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/tasks/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/tasks/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Task |
TasksController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/tasks/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/tasks/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateTaskDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
TasksController_remove
Code samples
fetch('/doatask/api/tasks/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/tasks/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
AssignmentsController_create
Code samples
const inputBody = '{
"title": "string",
"description": "string",
"dueDate": "2019-08-24T14:15:22Z"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/assignments',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
POST /doatask/api/assignments
Body parameter
{
"title": "string",
"description": "string",
"dueDate": "2019-08-24T14:15:22Z"
}
2
3
4
5
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateAssignmentDto | true | none |
Example responses
201 Response
{
"assignmentTasks": 0,
"submissions": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"type": "string",
"public": true,
"dueDate": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Assignment |
AssignmentsController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/assignments',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/assignments
Example responses
200 Response
[
{
"assignmentTasks": 0,
"submissions": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"type": "string",
"public": true,
"dueDate": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Assignment] | false | none | none |
| » assignmentTasks | number | true | none | none |
| » submissions | number | true | none | none |
| » owner | number | true | none | none |
| » id | number | true | none | none |
| » title | string | true | none | none |
| » description | string | true | none | none |
| » type | string | true | none | none |
| » public | boolean | true | none | none |
| » dueDate | string(date-time) | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
AssignmentsController_findUserAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/assignments/user/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/assignments/user/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"assignmentTasks": 0,
"submissions": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"type": "string",
"public": true,
"dueDate": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Assignment] | false | none | none |
| » assignmentTasks | number | true | none | none |
| » submissions | number | true | none | none |
| » owner | number | true | none | none |
| » id | number | true | none | none |
| » title | string | true | none | none |
| » description | string | true | none | none |
| » type | string | true | none | none |
| » public | boolean | true | none | none |
| » dueDate | string(date-time) | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
AssignmentsController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/assignments/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/assignments/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"assignmentTasks": 0,
"submissions": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"type": "string",
"public": true,
"dueDate": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Assignment |
AssignmentsController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/assignments/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/assignments/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateAssignmentDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
AssignmentsController_remove
Code samples
fetch('/doatask/api/assignments/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/assignments/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
AuthController_login
Code samples
fetch('/doatask/api/auth/login',
{
method: 'POST'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
POST /doatask/api/auth/login
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
AuthController_ltilogin
Code samples
fetch('/doatask/api/auth/ltilogin',
{
method: 'POST'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
POST /doatask/api/auth/ltilogin
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
AuthController_getProfile
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/auth/profile',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/auth/profile
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
AssignmentTasksController_create
Code samples
const inputBody = '{
"taskId": 0,
"assignmentId": 0,
"order": 0,
"weight": 0,
"timeLimit": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/assignmenttasks',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
POST /doatask/api/assignmenttasks
Body parameter
{
"taskId": 0,
"assignmentId": 0,
"order": 0,
"weight": 0,
"timeLimit": 0
}
2
3
4
5
6
7
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateAssignmentTaskDto | true | none |
Example responses
201 Response
{
"task": 0,
"assignment": 0,
"submissions": 0,
"id": 0,
"order": 0,
"weight": 0,
"timeLimit": 0,
"taskId": 0,
"assignmentId": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | AssignmentTask |
AssignmentTasksController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/assignmenttasks',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/assignmenttasks
Example responses
200 Response
[
{
"task": 0,
"assignment": 0,
"submissions": 0,
"id": 0,
"order": 0,
"weight": 0,
"timeLimit": 0,
"taskId": 0,
"assignmentId": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [AssignmentTask] | false | none | none |
| » task | number | true | none | none |
| » assignment | number | true | none | none |
| » submissions | number | true | none | none |
| » id | number | true | none | none |
| » order | number | true | none | none |
| » weight | number | true | none | none |
| » timeLimit | number | true | none | none |
| » taskId | number | true | none | none |
| » assignmentId | number | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
AssignmentTasksController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/assignmenttasks/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/assignmenttasks/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"task": 0,
"assignment": 0,
"submissions": 0,
"id": 0,
"order": 0,
"weight": 0,
"timeLimit": 0,
"taskId": 0,
"assignmentId": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | AssignmentTask |
AssignmentTasksController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/assignmenttasks/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/assignmenttasks/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateAssignmentTaskDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
AssignmentTasksController_remove
Code samples
fetch('/doatask/api/assignmenttasks/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/assignmenttasks/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
SubmissionsController_create
Code samples
const inputBody = '{
"course": "string",
"plugin": "string",
"solution": {},
"task": 0,
"assignment": 0,
"assignmentTask": 0,
"user": 0,
"level": "string",
"rated": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/submissions',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
POST /doatask/api/submissions
Body parameter
{
"course": "string",
"plugin": "string",
"solution": {},
"task": 0,
"assignment": 0,
"assignmentTask": 0,
"user": 0,
"level": "string",
"rated": true
}
2
3
4
5
6
7
8
9
10
11
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateSubmissionDto | true | none |
Example responses
201 Response
{
"task": 0,
"assignmentTask": 0,
"assignment": 0,
"user": 0,
"id": 0,
"course": "string",
"plugin": "string",
"solution": {},
"grade": 0,
"feedback": {},
"rated": true,
"rating": 0,
"level": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Submission |
SubmissionsController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/submissions',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/submissions
Example responses
200 Response
[
{
"task": 0,
"assignmentTask": 0,
"assignment": 0,
"user": 0,
"id": 0,
"course": "string",
"plugin": "string",
"solution": {},
"grade": 0,
"feedback": {},
"rated": true,
"rating": 0,
"level": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Submission] | false | none | none |
| » task | number | true | none | none |
| » assignmentTask | number | true | none | none |
| » assignment | number | true | none | none |
| » user | number | true | none | none |
| » id | number | true | none | none |
| » course | string | true | none | none |
| » plugin | string | true | none | none |
| » solution | object | true | none | none |
| » grade | number | true | none | none |
| » feedback | object | true | none | none |
| » rated | boolean | true | none | none |
| » rating | number | true | none | none |
| » level | object | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
SubmissionsController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/submissions/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/submissions/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"task": 0,
"assignmentTask": 0,
"assignment": 0,
"user": 0,
"id": 0,
"course": "string",
"plugin": "string",
"solution": {},
"grade": 0,
"feedback": {},
"rated": true,
"rating": 0,
"level": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Submission |
SubmissionsController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/submissions/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/submissions/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateSubmissionDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
SubmissionsController_remove
Code samples
fetch('/doatask/api/submissions/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/submissions/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
DomainsController_create
Code samples
const inputBody = '{
"name": "string",
"description": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/domains',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
POST /doatask/api/domains
Body parameter
{
"name": "string",
"description": "string"
}
2
3
4
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateDomainDto | true | none |
Example responses
201 Response
{
"tasks": 0,
"id": 0,
"name": "string",
"description": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Domain |
DomainsController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/domains',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/domains
Example responses
200 Response
[
{
"tasks": 0,
"id": 0,
"name": "string",
"description": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Domain] | false | none | none |
| » tasks | number | true | none | none |
| » id | number | true | none | none |
| » name | string | true | none | none |
| » description | string | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
DomainsController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/domains/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/domains/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"tasks": 0,
"id": 0,
"name": "string",
"description": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Domain |
DomainsController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/domains/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/domains/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateDomainDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
DomainsController_remove
Code samples
fetch('/doatask/api/domains/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/domains/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
RatingsController_create
Code samples
const inputBody = '{
"type": "string",
"ownerid": 0,
"domain": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/ratings',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
POST /doatask/api/ratings
Body parameter
{
"type": "string",
"ownerid": 0,
"domain": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true
}
2
3
4
5
6
7
8
9
10
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateRatingDto | true | none |
Example responses
201 Response
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Rating |
RatingsController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/ratings',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/ratings
Example responses
200 Response
[
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Rating] | false | none | none |
| » domain | number | true | none | none |
| » id | number | true | none | none |
| » type | string | true | none | none |
| » ownerid | number | true | none | none |
| » value | number | true | none | none |
| » deviation | number | true | none | none |
| » volatility | number | true | none | none |
| » result | number | true | none | none |
| » latest | boolean | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
RatingsController_findUserAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/ratings/user/{id}/all',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/ratings/user/{id}/all
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Rating] | false | none | none |
| » domain | number | true | none | none |
| » id | number | true | none | none |
| » type | string | true | none | none |
| » ownerid | number | true | none | none |
| » value | number | true | none | none |
| » deviation | number | true | none | none |
| » volatility | number | true | none | none |
| » result | number | true | none | none |
| » latest | boolean | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
RatingsController_findUserLatest
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/ratings/user/{id}/latest',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/ratings/user/{id}/latest
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
[
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Rating] | false | none | none |
| » domain | number | true | none | none |
| » id | number | true | none | none |
| » type | string | true | none | none |
| » ownerid | number | true | none | none |
| » value | number | true | none | none |
| » deviation | number | true | none | none |
| » volatility | number | true | none | none |
| » result | number | true | none | none |
| » latest | boolean | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
RatingsController_getTop
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/ratings/top/{count}/{domainid}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/ratings/top/{count}/{domainid}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| count | path | number | true | none |
| domainid | path | number | true | none |
Example responses
200 Response
[
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Rating] | false | none | none |
| » domain | number | true | none | none |
| » id | number | true | none | none |
| » type | string | true | none | none |
| » ownerid | number | true | none | none |
| » value | number | true | none | none |
| » deviation | number | true | none | none |
| » volatility | number | true | none | none |
| » result | number | true | none | none |
| » latest | boolean | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
RatingsController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/ratings/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/ratings/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Rating |
RatingsController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/ratings/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/ratings/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateRatingDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
RatingsController_remove
Code samples
fetch('/doatask/api/ratings/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/ratings/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
CommentsController_create
Code samples
const inputBody = '{
"content": "string",
"stars": 0,
"owner": 0,
"task": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/comments',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
POST /doatask/api/comments
Body parameter
{
"content": "string",
"stars": 0,
"owner": 0,
"task": 0
}
2
3
4
5
6
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateCommentDto | true | none |
Example responses
201 Response
{
"owner": 0,
"task": 0,
"id": 0,
"content": "string",
"stars": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | Comment |
CommentsController_findAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/comments',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/comments
Example responses
200 Response
[
{
"owner": 0,
"task": 0,
"id": 0,
"content": "string",
"stars": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Comment] | false | none | none |
| » owner | number | true | none | none |
| » task | number | true | none | none |
| » id | number | true | none | none |
| » content | string | true | none | none |
| » stars | number | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
CommentsController_findTaskAll
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/comments/task/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/comments/task/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | true | none |
Example responses
200 Response
[
{
"owner": 0,
"task": 0,
"id": 0,
"content": "string",
"stars": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
2
3
4
5
6
7
8
9
10
11
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | [Comment] | false | none | none |
| » owner | number | true | none | none |
| » task | number | true | none | none |
| » id | number | true | none | none |
| » content | string | true | none | none |
| » stars | number | true | none | none |
| » createdAt | string(date-time) | true | none | none |
| » updatedAt | string(date-time) | true | none | none |
CommentsController_findOne
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/doatask/api/comments/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /doatask/api/comments/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Example responses
200 Response
{
"owner": 0,
"task": 0,
"id": 0,
"content": "string",
"stars": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Comment |
CommentsController_update
Code samples
const inputBody = '{}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/doatask/api/comments/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PATCH /doatask/api/comments/{id}
Body parameter
{}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateCommentDto | true | none |
Example responses
200 Response
{}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
CommentsController_remove
Code samples
fetch('/doatask/api/comments/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
2
3
4
5
6
7
8
9
10
11
12
DELETE /doatask/api/comments/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Schemas
CreateUserDto
{
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"ltiid": 0,
"isActive": true
}
2
3
4
5
6
7
8
9
10
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
| password | string | false | none | none |
| string | false | none | none | |
| role | string | true | none | none |
| origin | string | true | none | none |
| ltiid | number | false | none | none |
| isActive | boolean | false | none | none |
User
{
"submissions": 0,
"id": 0,
"ltiid": 0,
"name": "string",
"password": "string",
"email": "string",
"role": "string",
"origin": "string",
"isActive": true
}
2
3
4
5
6
7
8
9
10
11
12
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| submissions | number | true | none | none |
| id | number | true | none | none |
| ltiid | number | true | none | none |
| name | string | true | none | none |
| password | string | true | none | none |
| string | true | none | none | |
| role | string | true | none | none |
| origin | string | true | none | none |
| isActive | boolean | true | none | none |
CreateTaskDto
{
"title": "string",
"description": "string",
"public": true,
"plugin": "string",
"details": {},
"domain": 0,
"tags": [
"string"
],
"rating": 0
}
2
3
4
5
6
7
8
9
10
11
12
13
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| title | string | true | none | none |
| description | string | true | none | none |
| public | boolean | true | none | none |
| plugin | string | true | none | none |
| details | object | true | none | none |
| domain | number | true | none | none |
| tags | [string] | false | none | none |
| rating | number | false | none | none |
Task
{
"assignmentTasks": 0,
"submissions": 0,
"domain": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"public": true,
"rating": 0,
"tags": [
"string"
],
"plugin": "string",
"details": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| assignmentTasks | number | true | none | none |
| submissions | number | true | none | none |
| domain | number | true | none | none |
| owner | number | true | none | none |
| id | number | true | none | none |
| title | string | true | none | none |
| description | string | true | none | none |
| public | boolean | true | none | none |
| rating | number | true | none | none |
| tags | [string] | true | none | none |
| plugin | string | true | none | none |
| details | object | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateTaskDto
{}
2
Properties
None
CreateAssignmentDto
{
"title": "string",
"description": "string",
"dueDate": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| title | string | true | none | none |
| description | string | true | none | none |
| dueDate | string(date-time) | true | none | none |
Assignment
{
"assignmentTasks": 0,
"submissions": 0,
"owner": 0,
"id": 0,
"title": "string",
"description": "string",
"type": "string",
"public": true,
"dueDate": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| assignmentTasks | number | true | none | none |
| submissions | number | true | none | none |
| owner | number | true | none | none |
| id | number | true | none | none |
| title | string | true | none | none |
| description | string | true | none | none |
| type | string | true | none | none |
| public | boolean | true | none | none |
| dueDate | string(date-time) | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateAssignmentDto
{}
2
Properties
None
CreateAssignmentTaskDto
{
"taskId": 0,
"assignmentId": 0,
"order": 0,
"weight": 0,
"timeLimit": 0
}
2
3
4
5
6
7
8
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| taskId | number | true | none | none |
| assignmentId | number | true | none | none |
| order | number | true | none | none |
| weight | number | true | none | none |
| timeLimit | number | true | none | none |
AssignmentTask
{
"task": 0,
"assignment": 0,
"submissions": 0,
"id": 0,
"order": 0,
"weight": 0,
"timeLimit": 0,
"taskId": 0,
"assignmentId": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| task | number | true | none | none |
| assignment | number | true | none | none |
| submissions | number | true | none | none |
| id | number | true | none | none |
| order | number | true | none | none |
| weight | number | true | none | none |
| timeLimit | number | true | none | none |
| taskId | number | true | none | none |
| assignmentId | number | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateAssignmentTaskDto
{}
2
Properties
None
CreateSubmissionDto
{
"course": "string",
"plugin": "string",
"solution": {},
"task": 0,
"assignment": 0,
"assignmentTask": 0,
"user": 0,
"level": "string",
"rated": true
}
2
3
4
5
6
7
8
9
10
11
12
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| course | string | true | none | none |
| plugin | string | true | none | none |
| solution | object | true | none | none |
| task | number | true | none | none |
| assignment | number | true | none | none |
| assignmentTask | number | true | none | none |
| user | number | true | none | none |
| level | string | false | none | none |
| rated | boolean | true | none | none |
Submission
{
"task": 0,
"assignmentTask": 0,
"assignment": 0,
"user": 0,
"id": 0,
"course": "string",
"plugin": "string",
"solution": {},
"grade": 0,
"feedback": {},
"rated": true,
"rating": 0,
"level": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| task | number | true | none | none |
| assignmentTask | number | true | none | none |
| assignment | number | true | none | none |
| user | number | true | none | none |
| id | number | true | none | none |
| course | string | true | none | none |
| plugin | string | true | none | none |
| solution | object | true | none | none |
| grade | number | true | none | none |
| feedback | object | true | none | none |
| rated | boolean | true | none | none |
| rating | number | true | none | none |
| level | object | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateSubmissionDto
{}
2
Properties
None
CreateDomainDto
{
"name": "string",
"description": "string"
}
2
3
4
5
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
| description | string | true | none | none |
Domain
{
"tasks": 0,
"id": 0,
"name": "string",
"description": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| tasks | number | true | none | none |
| id | number | true | none | none |
| name | string | true | none | none |
| description | string | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateDomainDto
{}
2
Properties
None
CreateRatingDto
{
"type": "string",
"ownerid": 0,
"domain": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true
}
2
3
4
5
6
7
8
9
10
11
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| type | string | true | none | none |
| ownerid | number | true | none | none |
| domain | number | true | none | none |
| value | number | true | none | none |
| deviation | number | true | none | none |
| volatility | number | true | none | none |
| result | number | true | none | none |
| latest | boolean | false | none | none |
Rating
{
"domain": 0,
"id": 0,
"type": "string",
"ownerid": 0,
"value": 0,
"deviation": 0,
"volatility": 0,
"result": 0,
"latest": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
11
12
13
14
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| domain | number | true | none | none |
| id | number | true | none | none |
| type | string | true | none | none |
| ownerid | number | true | none | none |
| value | number | true | none | none |
| deviation | number | true | none | none |
| volatility | number | true | none | none |
| result | number | true | none | none |
| latest | boolean | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateRatingDto
{}
2
Properties
None
CreateCommentDto
{
"content": "string",
"stars": 0,
"owner": 0,
"task": 0
}
2
3
4
5
6
7
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| content | string | true | none | none |
| stars | number | true | none | none |
| owner | number | true | none | none |
| task | number | true | none | none |
Comment
{
"owner": 0,
"task": 0,
"id": 0,
"content": "string",
"stars": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
2
3
4
5
6
7
8
9
10
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| owner | number | true | none | none |
| task | number | true | none | none |
| id | number | true | none | none |
| content | string | true | none | none |
| stars | number | true | none | none |
| createdAt | string(date-time) | true | none | none |
| updatedAt | string(date-time) | true | none | none |
UpdateCommentDto
{}
2
Properties
None