Skip to content

248 api endpoint for providing profile list - #259

Open
BMatischen01 wants to merge 12 commits into
developfrom
248-api-endpoint-for-providing-profile-list
Open

BMatischen01 wants to merge 12 commits into
developfrom
248-api-endpoint-for-providing-profile-list

Conversation

@BMatischen01

Copy link
Copy Markdown

Closes #248.

This PR implements an API endpoint for fetching a list of available profiles to validate against.
It calls upon rocrate-validator list_profiles command to pull available profiles and then outputs it in a JSON format for the end-user.
Fields returned for each profile:

  • identifier (e.g. ro-crate-1.3)
  • profile name
  • profile URI
  • profile version
  • description
  • based on

Return list of profile names. Test route for listing profiles calls this function
Expect JSON with list of profiles and response code
Pattern is api route -> profile service -> profile runner (interface between rocrate-validator and service). Good for future extension
Integration test specifies intended output
Remove Requirements check field from tests and methods
Ruff formatting and linter errors fixed
@BMatischen01 BMatischen01 linked an issue Nov 19, 2026 that may be closed by this pull request

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Endpoint for providing profile list

1 participant