Skip to content

Document responseType option for useFetchClient in plugins#3081

Merged
pwizla merged 18 commits intomainfrom
cms/document-fetch-client-responsetype
Apr 22, 2026
Merged

Document responseType option for useFetchClient in plugins#3081
pwizla merged 18 commits intomainfrom
cms/document-fetch-client-responsetype

Conversation

@pwizla
Copy link
Copy Markdown
Collaborator

@pwizla pwizla commented Apr 21, 2026

This PR updates documentation based on strapi/strapi#25974.

Since documentation was missing for useFetchClient and getFetchClient, this PR also updates the Plugins Development > Admin Panel API section by adding a new "fetch client" page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pwizla pwizla added the auto-doc-healing Automatically generated documentation PR label Apr 21, 2026
@strapi-cla
Copy link
Copy Markdown

strapi-cla commented Apr 21, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pwizla
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Apr 22, 2026 3:36pm

Request Review

@github-actions github-actions Bot added internal PRs created by the Strapi core team pr: updated content PRs updating existing documentation content source: CMS labels Apr 21, 2026
@pwizla pwizla self-assigned this Apr 21, 2026
@pwizla pwizla marked this pull request as ready for review April 22, 2026 09:47
@pwizla
Copy link
Copy Markdown
Collaborator Author

pwizla commented Apr 22, 2026

LGTM from a docs content POV (style + layout).
Pending information architecture + integrity checker reviews

pwizla and others added 4 commits April 22, 2026 14:48
Documents useFetchClient hook, getFetchClient utility, and responseType
option for making authenticated HTTP requests from the admin panel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pwizla and others added 3 commits April 22, 2026 15:18
Add sending data with post/put, request options table (params, headers,
signal, validateStatus, responseType), query params example, error
handling with FetchError/isFetchError, FormData tip, and auto token
refresh note.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pwizla pwizla changed the title [Docs self-healing] Document responseType option for useFetchClient in plugins Document responseType option for useFetchClient in plugins Apr 22, 2026
pwizla and others added 2 commits April 22, 2026 17:15
…adings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pwizla
Copy link
Copy Markdown
Collaborator Author

pwizla commented Apr 22, 2026

Now completely ready to merge! 🚀

@pwizla pwizla merged commit c04ad0d into main Apr 22, 2026
3 of 4 checks passed
@pwizla pwizla deleted the cms/document-fetch-client-responsetype branch April 22, 2026 15:36
@pwizla pwizla added pr: new content PRs for new product features or new documentation sections and removed pr: updated content PRs updating existing documentation content labels Apr 22, 2026
pwizla added a commit that referenced this pull request Apr 22, 2026
…3090)

* Document responseType option for useFetchClient in plugin development



* Add admin fetch client page to plugins development

Documents useFetchClient hook, getFetchClient utility, and responseType
option for making authenticated HTTP requests from the admin panel.



* Add fetch client to Admin Panel API sidebar section



* Add fetch client to Admin Panel API overview table and cards



* Replace inline fetch client docs with link to dedicated page



* Expand fetch client page: post/put examples, options, error handling

Add sending data with post/put, request options table (params, headers,
signal, validateStatus, responseType), query params example, error
handling with FetchError/isFetchError, FormData tip, and auto token
refresh note.



* Update pass-data guide: link to fetch client instead of Axios



* Add admin panel error handling tip to error handling page



* Update LLMs files

* Improve formatting

* Fix Axios example in pass-data guide, add missing code block title



* Restructure fetch client page: task-oriented outline with parallel headings



* Fix getFetchClient anchor after fetch client page restructure



* Move fetch client page in the sidebar

* Slightly update table order for available actions

* Update LLMs-code.txt

* Move fetch client page last

* Update pagination after last move

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-doc-healing Automatically generated documentation PR internal PRs created by the Strapi core team pr: new content PRs for new product features or new documentation sections source: CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants