API Update: New User Endpoints and User Fields
New Features
List Users (GET /users): This endpoint retrieves a list of users. Ideal for basic filtering or fetching all users.
Search Users (POST /users/search): This endpoint provides the same filtering options and response as List Users. Use this if filtering by a large number of values.
Improvements
Added "roles" field to the User Model: The User model now includes a roles
field that lists all of the user's platform roles.
Added "createdAt" field to the User Model: The User model now includes a createdAt
field that has an ISO 8601 formatted datetime string of the date the user was created
Added "updatedAt" field to the User Model: The User model now includes a updatedAt
field that has an ISO 8601 formatted datetime string of the date the user was last updated
4 structure changes including:
2 Additions
2 Modifications
Modified
2
POST /students
- Response
-
201 response Modified
-
application/json content type Modified
- user property Modified
-
application/json content type Modified
POST /teachers
- Response
-
201 response Modified
-
application/json content type Modified
- user property Modified
-
application/json content type Modified
Added
2
GET /users
POST /users/search