Closed
Description
As a user viewing the audit page, I would like my audit data to be loaded and displayed.
Technical Considerations
The backend work for the new audit route is not yet completed; however, we know what the new API points will look like:
REST API from the RFC
- Adds `GET /api/v2/audit` to return audit logs.
- Supports `codersdk.Pagination`
- Adds `GET /api/v2/audit/count` to return number of logs for computing pages
We can scaffold out a new machine based on the above routes.
AC
- Add new routes to
api.tsx
- Add new testing entities for these routes
- Add new machine in new file,
auditXService.ts
- The above machine should back the view for the new audit log
- The above machine should support pagination
Definition of Done
Above AC is completed.