Skip to content

Create skills index for single skilltree endpoint #97

@cyrildewit

Description

@cyrildewit

As developer who uses the Backend API Application to build a client for TalentPulse,

I want want to fetch all skills of a Skilltree

So that I can list them in a visual tree structure in the student portal

Description

We need an endpoint to list all skills of a skilltree. We will paginate the reponse, but with a higher maximum page size limit. A high page size is only allowed when a subset of the resource properties are fetched. The contents of a skill are for example not needed in high overview tree structures of the skilltree. By designing the API in this way, we make it less hard for the clients to fetch large amount of skills, but still maintain a performant request cycle.

Technical requirements

  • Endpoint: GET /skilltrees/{uuid}/skills
  • Find the skilltree by its UUID
  • Create the SkillReseource if it does not exists
  • Return a collection of SkillReseource
  • Authorization:
    • User is allowd to view the resource if he is enrolled to the related course.
    • Reuse the skilltree->view policy sheck

Test plan

Feature test

  • Write a feature test for the endpoint (without referecing the internal route name), so breaking changes to the endpoint URL are catched by the feature tests.
  • Test the resource body for all expected properties and values.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions