REST Client
A typesafe REST API client for Payload CMS.
Installation
pnpm add payload-rest-client About
This plugin provides a typesafe REST API client for interacting with Payload CMS. Users can create a client instance specifying the API URL and custom endpoint configurations. It supports authentication including login and token management, allowing access to protected routes. The plugin includes utility functions for common operations on collections and globals, enabling complete API interaction in a type-safe manner. Users can define custom endpoints with specific input and output types, enhancing the API's flexibility. The client also offers various options such as custom fetch functions, additional caching mechanisms, and debugging capabilities to improve performance and developer experience. It's particularly suited for applications requiring dynamic interactions with content managed in Payload CMS.
Package info
- Package name
payload-rest-client- Latest version
3.0.5- Unpacked size
- 56 kB
- License
- MIT
- Weekly downloads
- 354
- Last publish
- Feb 19, 2025
More from dkirchhof
View profileSimilar plugins
More in DevtoolsRedirects
Manage redirects directly within the Payload CMS admin panel.
SEO plugin
A plugin to manage SEO metadata from within the Payload admin panel.
Cloud
Connects a Payload instance to Payload Cloud's managed S3 storage, Cloudflare CDN upload caching, and Resend email delivery.
OpenAPI
Generates OpenAPI specifications from Payload CMS configurations.
Stripe
Syncs Payload collections with Stripe resources and routes Stripe webhooks and API calls through Payload.
Cloud Storage
This plugin integrates cloud storage options into Payload CMS.