Dev Docs
  • Disciple.Tools Technical Documentation
  • Theme Core
    • API - Posts
      • List of Endpoints
      • Fields Format
      • Get Post
      • Create Post
      • Update Post
      • Post Comments
      • Post Activity
      • List Query
      • Global Search
      • Posts in Typeaheads
      • Post-Sharing
      • Get Following
      • Settings
    • API - Other
      • Users
      • Locations
      • Settings
    • Hooks
      • Record Page Hooks
      • API-Hooks
      • Public settings
      • Adding menu navigation links
    • Customization
      • Fields
      • Custom Post Types
      • Post Type Modules
      • Adding Fields and Tiles.
    • Authentication
      • JWT-Authentication-for-the-mobile-app
      • Site-to-Site-Link
      • Easy-Example
    • Permissions
    • Roles and Permissions
    • Database Tables
      • Activity Table
    • Disciple.Tools Translation
    • Revisions
      • v1.0.0-dev-changes
      • v1.0
  • Hosting
    • 404 Errors on new install
    • CRON
    • Hosting on WPEngine
    • Backups
    • Single Site or MultiSite
  • Disciple.Tools Development Setup
    • LocalWP
    • Mobile App Setup
    • Unit Tests
    • Cypress Tests
    • D.T on Docker Setup
    • Gulp - CSS and JS
  • Code Contribution
    • Theme Contribution Guidelines
    • How to Correctly Contribute to the Disciple Tools Repository
    • How to Translate Your Plugin
  • Style Guide
  • Disciple.Tools Code of Conduct
Powered by GitBook
On this page

Was this helpful?

Edit on Git
  1. Theme Core
  2. API - Posts

List of Endpoints

PreviousAPI - PostsNextFields Format

Last updated 3 years ago

Was this helpful?

This page covers endpoints available for all post types like

  • contacts

  • groups

  • custom post types. Click for more information.

Endpoints

CRUD

  • : POST /wp-json/dt-posts/v2/{post-type}

  • : GET /wp-json/dt-posts/{post-type}/v2/post-type/{post_id}

  • : POST /wp-json/dt-posts/v2/{post-type}/{post_id}

List

  • : GET /wp-json/dt-posts/v2/{post-type}

  • : GET /wp-json/dt-posts/v2/{post-type}/compact

Comments

  • : GET /wp-json/dt-posts/v2/{post-type}/{post_id}/comments

  • : POST /wp-json/dt-posts/v2/{post-type}/{post_id}/comments

  • : POST /wp-json/dt-posts/v2/{post-type}/{post_id}/comments/{comment_id}

  • : DELETE /wp-json/dt-posts/v2/{post-type}/{post_id}/comments/{comment_id}

Activity

Shares

Following

Settings

  • Multi_select values: GET /wp-json/dt-posts/v2/{post-type}/multi-select-values

Global Search

: GET /wp-json/dt-posts/v2/{post-type}/{post_id}/activity

: GET /wp-json/dt-posts/v2/{post-type}/{post_id}/activity/{activity_id}

: GET /wp-json/dt-posts/v2/{post-type}/{post_id}/shares

: POST /wp-json/dt-posts/v2/{post-type}/{post_id}/shares

: DELETE /wp-json/dt-posts/v2/{post-type}/{post_id}/shares

: GET /wp-json/dt-posts/v2/{post-type}/{post_id}/following

: GET /wp-json/dt-posts/v2/{post-type}/settings

: GET /wp-json/dt-posts/v2/posts/search/advanced_search

here
Create post
Get post
Update post
List posts
List posts for Typeaheads
Get comments
Create comment
Update comment
Delete comment
Get activity
Get one activity
Get shares
Add shares
Remove shares
Get users following
Get settings
Global search