hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 265 forks source link

[Feature] (PHP): Implement Endpoint for Retrieving Role Details by Organization and Role IDs #1445

Open Paul-Ajibola opened 2 months ago

Paul-Ajibola commented 2 months ago

Description

Develop a backend API endpoint that allows the retrieval of detailed information about a specific role associated with a given organization. The endpoint will utilize the organization’s ID and the role’s ID to fetch the relevant data.

Acceptance Criteria

  1. The endpoint successfully retrieves the correct role details for a given organization and role ID.
  2. The response is formatted as a JSON object with the expected fields.
  3. The endpoint handles errors correctly and returns appropriate HTTP status codes (e.g., 404 for not found).
  4. The endpoint is well-documented with clear explanations of the parameters, response format, and error handling.

Links

https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=4-33159&t=hHwJaKsR0WUN3DlO-0

Images

image