• Resolved tuzmusic

    (@tuzmusic)


    I see a lot of reference to the WPJM API but even looking at the code I can’t figure out where to find the endpoints. I do have define( 'WPJM_REST_API_ENABLED', true ); in my root folder’s wp-config.php.

    Code for WP_Job_Manager_REST_Controller_CRUD appears to define these routes:
    `php
    public function setup() {
    $this->add_route( ‘/’ )
    ->add_action( $this->action( ‘index’, array( $this, ‘get_items’ ) ) )
    ->add_action( $this->action( ‘create’, array( $this, ‘create_item’ ) ) );

    $this->add_route( ‘/(?P<id>\d+)’ )
    ->add_action( $this->action( ‘show’, array( $this, ‘get_item’ ) ) )
    ->add_action( $this->action( ‘update’, array( $this, ‘update_item’ ) ) )
    ->add_action( $this->action( ‘delete’, array( $this, ‘delete_item’ ) ) );
    }
    `

    My namespaces listed at https://www.mysite.com/wp-json/
    `json
    namespaces: [
    “oembed/1.0”,
    “contact-form-7/v1”,
    “gt3/v1/”,
    “api/v2”,
    “wc/v1”,
    “wc/v2”,
    “wc/v3”,
    “wc-blocks/v1”,
    “wp-product-review”,
    “themeisle-sdk/v1”,
    “wp/v2”
    ],
    `

    I’m trying to post a new listing remotely (via mobile app). Would that be `POST
    https://www.mysite.com/wp-json/wp/v2/job-listings/`?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    The REST API for WP Job Manager is not finished yet and is still in pre-Beta mode, really. As such, it is not intended to be used in any sort of production capacity. Once it’s ready, we’ll publish documentation for it. At this point, I don’t have a timeline for that, sorry!

Viewing 1 replies (of 1 total)
  • The topic ‘What are the REST Endpoints?’ is closed to new replies.