Closed ugberaeseac closed 2 weeks ago
This is not how it works
I have seen this before, check for duplication
Its obvious the other was done after ours was done because we are Issue #52 and the other is issue #154
Sir, I don't think the features are similar. From my understanding, going by the endpoints
Implementing a feature whereas an authenticated user can view organisations any other user is associated with by providing their user id
implementing a feature where an authenticated user can only view the organisations they are associated with and takes no paramaters. It is similar to the endpoint /api/v1/organisations/me.
The logic is different, we can both start working on them?
okay
@Hardeezah I advise you restructure your TITLE and also a bit of your description on #154 and i would edit #52 endpoint to " /api/v1/organisations/me"
Description
Implement a secure API endpoint to list all organizations associated with the authenticated user. Ensure the endpoint only returns the user's organizations and handles unauthorized and forbidden request errors properly.
Acceptance Criteria
Authentication
Fetch User Organisations
Successful Response
Endpoint:
Requests
Successful Response
Error Response
401 Unauthorized
403 Forbidden
Purpose
Allow authenticated users to retrieve a list of organisations they created or belong to, therefore ensuring secure and accurate data retrieval.
Requirements
Expected Outcome
Testing:
Unit Tests:
Authentication Tests:
Authorization Tests: