-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88486cb
commit e0d7bbc
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Reports | ||
|
||
Reports are used to get information about the platform's usage. | ||
|
||
## Questions Report | ||
|
||
If you want to generate a report about the questions, send this `POST` request: | ||
|
||
```http | ||
POST /reports/questions | ||
``` | ||
|
||
### Request | ||
|
||
#### Parameters | ||
|
||
| Parameter | Location | Type | Description | Required | | ||
| -------------- | -------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | -------- | | ||
| **start_date** | Body | Milliseconds since epoch | The date to start the report data in milliseconds since UNIX Epoch. | Yes | | ||
| **end_date** | Body | Milliseconds since epoch | The date to end the report data in milliseconds since UNIX Epoch. | Yes | | ||
| **group_ids** | Body | string[] | List of the group ids you want to generate the report about. If not specified, it will bring data about all groups you have access to. | No | | ||
| **Accept** | Header | Mime type | The format you want the report to be in. Supported values are `application/json` and `text/csv`. It defaults to `application/json`. | No | | ||
|
||
### Response | ||
|
||
#### Status | ||
|
||
| Code | Description | | ||
| ---- | ------------------------------------- | | ||
| 200 | The report was generated succesfully. | | ||
| 401 | Unauthorized. | | ||
|
||
#### Example | ||
|
||
```json | ||
[ | ||
{ | ||
"question_id": "706cb23b-6e65-4863-afec-4d5fb2af17a6", | ||
"school": "School", | ||
"group": "Group", | ||
"student_id": "fc2779a8-5229-4656-86d5-4e742b61c1c5", | ||
"student_name": "Student Name", | ||
"student_email": "[email protected]", | ||
"teacher_id": "330fa799-efbb-45c0-8755-34d928b8a3c4", | ||
"teacher_name": "Teacher Name", | ||
"teacher_email": "[email protected]", | ||
"question_discipline": "Discipline", | ||
"question_subject": "Subject", | ||
"question_created_at": "2024-02-19T14:04:02.057Z", | ||
"question_answered_at": "2024-02-19T18:18:43.599Z", | ||
"question_status": "Respondida", | ||
"question_anonymous": false, | ||
"question_description": "Description", | ||
"answer_description": "", | ||
"reply_description": "", | ||
"reply_answer_description": "", | ||
"answer_rating": "", | ||
"answer_understood": "", | ||
"answer_comment": "", | ||
"has_seen_answer": false, | ||
"link": "https://portal.stift.com.br/#/questions/706cb23b-6e65-4863-afec-4d5fb2af17a6/" | ||
} | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,5 @@ nav: | |
- groups.md | ||
- disciplines.md | ||
- auth_integration.md | ||
- webhooks.md | ||
- webhooks.md | ||
- reports.md |