List all users
Admin-only. Returns every user in the system (password hash redacted).
Request
Method: GET
Path: /api/users
Authentication: Not required
Responses
200 - Array of users
401 - Unauthenticated
403 - Requires admin role
Examples
cURL
curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/api/users
JavaScript
const response = await fetch('http://localhost:3000/api/users', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
This documentation is automatically generated from the OpenAPI specification.