Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The REST API is a lower level interface than Jetpack’s. There will not be a one to one translation from the Jetpack request to a REST request. It may take several requests before you actually get the information you need. If you always need the same sort of data which normally takes several queries, you can create a custom endpoint to get just that data. Then it would be the endpoint’s callback that does all the work of determining how to access the data needed based on the supplied parameter.

    Thread Starter svenulrich

    (@svenulrich)

    Thanks for that information. I found some websites about this topic, with examples to create custom endpoints.
    Like this one: https://www.goyippi.net/2016/11/wordpress-rest-api-was-ist-das/

    I will try it for next time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jetpack vs WP-Rest Api’ is closed to new replies.