Skip to content

New: add endpoints to fetch content plugin READMEs (fixes #100)#101

Merged
taylortom merged 1 commit into
masterfrom
new/plugin-readme-endpoints
Jun 30, 2026
Merged

New: add endpoints to fetch content plugin READMEs (fixes #100)#101
taylortom merged 1 commit into
masterfrom
new/plugin-readme-endpoints

Conversation

@taylortom

Copy link
Copy Markdown
Contributor

Fixes #100

New

  • Add GET /api/contentplugins/readme returning every installed plugin's README.md as an object keyed by plugin name.
  • Add GET /api/contentplugins/:_id/readme returning a single plugin's { name, readme }, looked up by _id (404s if the plugin or its README is absent).
  • Add getPluginReadmes util (globs the framework src for {components,extensions,menu,theme}/*/README.md) and a getReadmes() method.

Testing

  1. npm test — includes new tests/utils-getPluginReadmes.spec.js.
  2. GET /api/contentplugins/readme returns a name→markdown map.
  3. GET /api/contentplugins/<_id>/readme returns { name, readme }.

@taylortom
taylortom merged commit ff25083 into master Jun 30, 2026
2 checks passed
@taylortom
taylortom deleted the new/plugin-readme-endpoints branch June 30, 2026 11:22
github-actions Bot pushed a commit that referenced this pull request Jun 30, 2026
# [1.8.0](v1.7.1...v1.8.0) (2026-06-30)

### Docs

* add the content plugins guide (#97) ([c7462fa](c7462fa)), closes [#97](#97)

### New

* add endpoints to fetch content plugin READMEs (fixes #100) (#101) ([ff25083](ff25083)), closes [#100](#100) [#101](#101)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose content plugin README content via the API

1 participant