Skip to content

Get all resources #176

Description

@yellalena
  • Add GET /resources endpoint
  • Fetch all records from the db
  • Dynamically calculate hiddenFrom field value for each record while iterating, add it to frontend’s output. Since hiddenFrom is a field for frontend, it should use frontend’s terminology, i.e. guest instead of public
  • Based on hiddenFrom and requestor’s role, apply role filter to hidden_from field.
    If hidden_from = user role → set Description, Attachment, Link to Null and send the result back to Frontend.
  • Update swagger
  • Add unit tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions