| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | |||
| 13 | @ns.route('/results/export/<int:id>') |
||
| 14 | @api.doc(params={'id': 'The sprint id'}) |
||
| 15 | @api.response(404, 'Validation error', message) |
||
| 16 | class ProjectSprintResultAuditExportItem(Resource): |
||
| 17 | |||
| 18 | @api.expect(authorization) |
||
| 19 | @api.marshal_with(message, 'Null') |
||
| 20 | @api.response(400, 'No results found', message) |
||
| 21 | def get(self, id): |
||
| 22 | """ |
||
| 23 | Returns sprint export. |
||
| 24 | * Privileges required: **read** |
||
| 25 | """ |
||
| 26 | validate_privilege(self, 'read') |
||
| 27 | user_id = select_userid_jwt(self) |
||
| 28 | result = get_sprint_results_audit_export(id, user_id) |
||
| 29 | return result, 200, security_headers() |
||
| 30 |