curl --request GET \
--url http://localhost:8000/api/v1/bug-reports/{bug_report_id} \
--header 'Authorization: Bearer <token>'{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"title": "<string>",
"steps_to_reproduce": "<string>",
"expected_behavior": "<string>",
"actual_behavior": "<string>",
"send_to_team": "frontend",
"description": "<string>",
"screenshot": "<string>",
"user": {
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"is_google_recaptcha_response_valid": true
}
}Get a specific bug report by its ID. Requires superuser privileges.
Args: bug_report_id (int): The ID of the bug report. _admin_user (User): The current superuser.
Returns: BugReportSchema: The bug report details.
Raises: HTTPException: 404 if the bug report is not found.
curl --request GET \
--url http://localhost:8000/api/v1/bug-reports/{bug_report_id} \
--header 'Authorization: Bearer <token>'{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"title": "<string>",
"steps_to_reproduce": "<string>",
"expected_behavior": "<string>",
"actual_behavior": "<string>",
"send_to_team": "frontend",
"description": "<string>",
"screenshot": "<string>",
"user": {
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"is_google_recaptcha_response_valid": true
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The schema for a bug report.
The teams for bug reports.
frontend, backend, ux_ui, devops, suggestion The schema for a user.
Show child attributes