Skip to content

Add organisation controller, transformer, routes#58

Merged
jajaramillo24 merged 1 commit intostagingfrom
WN-344
Feb 24, 2026
Merged

Add organisation controller, transformer, routes#58
jajaramillo24 merged 1 commit intostagingfrom
WN-344

Conversation

@jajaramillo24
Copy link
Collaborator

Introduce OrganisationTransformer and OrganisationController to expose legacy organisation APIs using Fractal. Transformer accepts an 'unpublished' config to control inclusion of unpublished translations. Controller fetches organisations via the repository, loads details, handles errors with logging, and returns transformed JSON for collection and item endpoints. Update Organisation model to include country_code in the fillable attributes. Register new routes: GET v1/org/ (list), GET v1/org/{code} (detail) and add whatnow/{id} route.

Introduce OrganisationTransformer and OrganisationController to expose legacy organisation APIs using Fractal. Transformer accepts an 'unpublished' config to control inclusion of unpublished translations. Controller fetches organisations via the repository, loads details, handles errors with logging, and returns transformed JSON for collection and item endpoints. Update Organisation model to include country_code in the fillable attributes. Register new routes: GET v1/org/ (list), GET v1/org/{code} (detail) and add whatnow/{id} route.
@jajaramillo24 jajaramillo24 merged commit af0dfaa into staging Feb 24, 2026
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.

2 participants