Skip to content

feat: add Resource collection for programmatic content#94

Open
riboflavin wants to merge 3 commits into
cowprotocol:mainfrom
riboflavin:feat/resource-collection
Open

feat: add Resource collection for programmatic content#94
riboflavin wants to merge 3 commits into
cowprotocol:mainfrom
riboflavin:feat/resource-collection

Conversation

@riboflavin

@riboflavin riboflavin commented Jul 13, 2026

Copy link
Copy Markdown

Summary

  • Adds a new Strapi Resource collection for programmatic/batch content, separate from editorial Article / Learn content.
  • Includes a required campaign field (kebab-case slug) for URL grouping; no categories, tags, authors, or featured for v1.
  • Regenerates OpenAPI docs and @cowprotocol/cms client / Strapi types.

Proposed site URL model (frontend follow-up)

  • /resources — list campaigns
  • /resources/[campaign] — list resources in a campaign
  • /resources/[campaign]/[slug] — resource detail (global slug uniqueness)

Discoverability: footer link only (no main nav) in the companion cow-fi PR.

Post-merge ops

Please enable in staging/prod after deploy:

  • Public role: resource.find, resource.findOne
  • Editor roles: Resource CRUD
  • API token scopes (if not full-access) for cow-fi consumers

Then publish a new @cowprotocol/cms version so the cow-fi PR can depend on typed /resources endpoints.

Introduce a dedicated Strapi collection for programmatic content with
campaign grouping, separate from editorial Articles.
Add per-endpoint OpenAPI docs for the /resources REST API.
Refresh OpenAPI-derived client types and Strapi content type definitions.
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.

1 participant