plugin-icon

O3 CLI Services

제작자: o3world·
O3 CLI Services integrates any WordPress site with the O3 CLI (https://www.npmjs.com/package/o3-cli) tool.
버전
1.0.2
최근 업데이트일
Dec 18, 2019

In its current version, O3 CLI Services exposes two WordPress REST API endpoints to empower developers and QA engineers to query URL paths of WordPress posts by post types, category types, and menus.

Usage

Use the /wp-json/o3-cli-api/url-sources API endpoint to get a list of sources of URL paths, and use the /wp-json/o3-cli-api/urls API to get a list of URL paths of posts in the system, using your sources as URL query parameter filters.

Source filters for /wp-json/o3-cli-api/urls: – post_types – Include a comma-separated list of post type machine names. – categories – Include a comma-separated list of category slugs. – menus – Include a comma-separated list of menu slugs. – limit – Include an integer limit to control the maximum number of URL paths to return for each machine name in any source.

An example request:

GET http://example.com/wp-json/o3-cli-api/urls?post_types=post,product&categories=food,travel&menus=main-navigation,footer-menu&limit=50

The above example requests the URL paths of posts of post types with the machine names of ‘post’ and ‘product’, having categories with ‘food’ and ‘travel’ slugs, as well as items in menus with ‘main-navigation’ and ‘footer-menu’ slugs. As with any WordPress REST API endpoints, the above request returns a JSON array.

The O3 CLI automatically generates requests like the above, and it empowers developers and QA engineers to dynamically generate visual regression tests, among other needs. See the documentation at https://www.npmjs.com/package/o3-cli.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 5.3.20
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.