WP Manifestindependent plugin directory
manifest / integrations / custom-endpoints

Custom Endpoints

A WordPress plugin that serves up WP Rest API endpoints using Advanced Custom Fields

by Andres Posada · github.com/posadallano/custom-endpoints · website

5stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/posadallano/custom-endpoints/archive/refs/heads/master.zip

From the readme

Custom Rest Endpoints A WordPress plugin that serves up WP Rest API endpoints using Advanced Custom Fields Endpoints Home page {URL}/wp-json/pagecontent/v1/home Get the Home page data. It returns a JSON response with the following: - ACF fields: 'contentblockshome' Get Posts {URL}/wp-json/posts/v1/archive?perpage={integer}&offset={integer} Gets a collection of posts. Accepts the following parameters: - perpage (int) - offset (int) It returns a JSON response with the following: - Title - Image - Date (timestamp) - Post Link - Categories list (array: name & link) Get Post by ID {URL}/wp-json/posts/v1/detail/{postid} Get a post by ID. Accepts the following parameter: - ID (int) It returns a JSON response with the following: - Title - Image - Content - Categories list (array: name & link) Categories List {URL}/wp-json/news/v1/categories Get a list of Categories used by WordPress posts. Accepts no parameters. It returns a JSON response with the following: - Category Name - Category ID Upcoming Events (custom post type) {URL}/wp-json/posts/v1/upcomingevents Get the 10 Upcoming Events (posts) from now (by date). Accepts no parameters. It returns a JSON response with the follow

Read the full README on GitHub →