This PR introduces an endpoint for retrieving all users within a specific organization for authenticated users. This endpoint allows fetching user details associated with a given organization ID.
Features Implemented:
Retrieve Organization Users: Provides a method to fetch all users belonging to a specific organization.
Authentication: Ensures that only authenticated users can access the organization's user list.
Error Handling: Manages errors for cases where the organization is not found or other issues occur.
Closes #issue_number_here
Changes proposed
Get All Users in Organisation
Endpoint: GET /api/v1/organizations/{orgId}/users
Summary: Retrieve all users associated with a specific organization.
Path Parameter:
orgId (required, Guid) - The ID of the organization to fetch users from.
Successful Response:
Status Code: 200 OK
Response:
Description
This PR introduces an endpoint for retrieving all users within a specific organization for authenticated users. This endpoint allows fetching user details associated with a given organization ID. Features Implemented:
Closes #issue_number_here
Changes proposed
Get All Users in Organisation
Endpoint: GET /api/v1/organizations/{orgId}/users Summary: Retrieve all users associated with a specific organization.
Path Parameter:
Successful Response: Status Code: 200 OK Response:
Error Responses: Not Found: Status Code: 404 Not Found Response:
What were you told to do?
Implement an endpoint for retrieving all users within a specific organization.
What did you do?
Check List (Check all the applicable boxes)
🚨Please review the contribution guideline for this repository.
Screenshots/Videos