Linux 软件免费装

MksDdn Collection for Postman

开发者 mksddn
更新时间 2025年10月6日 18:33
PHP版本: 8.1 及以上
WordPress版本: 6.8
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

rest api collection postman developer-tools

下载

1.0.4

详情介绍:

MksDdn Collection for Postman helps developers quickly generate a Postman Collection (v2.1.0) for WordPress REST API endpoints. The plugin automatically discovers and includes standard WordPress entities, custom post types, options pages, and individual pages. Generated collections include pre-configured requests with sample data and can be downloaded as JSON files for import into Postman. The plugin provides comprehensive API testing capabilities with automatic generation of test data for form submissions, support for file uploads via multipart/form-data, and seamless integration with Advanced Custom Fields (ACF). Special handling is included for the mksddn-forms-handler plugin when active. Features:

安装:

  1. Upload the mksddn-collection-for-postman folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. In the admin sidebar, open “Postman Collection” to generate and download the collection.

常见问题:

Does it support multisite?

Yes. It works at the site level. Network-specific screens are not required.

Does it require ACF?

No. It supports ACF fields if present for pages and posts, but it does not require ACF to work.

Is there a WP-CLI command?

Yes. The plugin includes WP-CLI integration for command-line usage: Export to file: wp mksddn-collection-for-postman export --file=postman_collection.json Print to stdout: wp mksddn-collection-for-postman export --pages=home,about Export with specific pages: wp mksddn-collection-for-postman export --file=my_collection.json --pages=home,about,contact

Does it support ACF fields?

Yes. The plugin automatically includes ACF field support in requests for pages and posts. When generating requests, it adds acf_format=standard parameter and includes ACF fields in the _fields parameter.

Does it support file uploads in forms?

Yes. When forms contain file fields, the plugin automatically generates multipart/form-data requests with proper file handling. For forms without files, it uses standard JSON requests.

Can I customize the generated collection?

Yes. The plugin provides WordPress filters for customization:

  • mksddn_postman_collection - Modify the entire collection structure
  • mksddn_postman_filename - Customize the download filename
  • mksddn_postman_capability - Change required user capability

更新日志:

1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 Initial public release.