Linux 软件免费装

MksDdn Collection for Postman

开发者 mksddn
更新时间 2026年2月22日 16:48
PHP版本: 8.1 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

rest api collection postman openapi developer-tools

下载

2.0.2 1.0.4 1.0.5 1.1.0 2.1.0 2.0.0 2.0.1

详情介绍:

MksDdn Collection for Postman helps developers quickly generate a Postman Collection (v2.1.0) or OpenAPI 3.0 documentation 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. OpenAPI spec can be used with Swagger UI, Redoc, or frontend code generators. 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 support WooCommerce?

Yes. When WooCommerce is active, the plugin adds a WooCommerce folder with products, product categories, and orders endpoints. Set collection variables wcConsumerKey and wcConsumerSecret (from WooCommerce > Settings > Advanced > REST API).

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: Postman export: wp mksddn-collection-for-postman export --file=postman_collection.json wp mksddn-collection-for-postman export --pages=home,about --cpt=product OpenAPI export: wp mksddn-collection-for-postman export-openapi --file=openapi.json wp mksddn-collection-for-postman export-openapi --pages=home,about

Does it support ACF fields?

Yes. When ACF (Advanced Custom Fields) or SCF (Smart Custom Fields) plugin is active, ACF fields are automatically included for all post types (pages, posts, CPT) in both list and single-item requests. When the plugin is not installed, ACF fields are omitted from the response.

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 export OpenAPI documentation?

Yes. Select "OpenAPI 3.0 (JSON)" in the admin export format options, or use WP-CLI: wp mksddn-collection-for-postman export-openapi --file=openapi.json. The generated spec is compatible with Swagger UI, Redoc, and code generators.

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 Postman download filename
  • mksddn_postman_openapi_spec - Modify OpenAPI specification before export
  • mksddn_postman_openapi_filename - Customize OpenAPI download filename
  • mksddn_postman_capability - Change required user capability

更新日志:

2.1.0 2.0.2 2.0.1 2.0.0 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 Initial public release.