Open distributev opened 8 years ago
Because I told you that make a custom end point using api v1 is very difficult.
On Jul 21, 2016 5:43 PM, "distributev" notifications@github.com wrote:
Why WP Router is required?
My understanding was that you tried to use the latest V2 rest api but because of a bug in pods.io / REST you had to rollback to V1 rest API. So all the rest stuff should be handled by v1 wp rest.
So why is then WP Router still required? Why both v1 wp rest api and WP Router are used in the same time?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/distributev/gmail-wordpress-mailchimp-integration/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AO415V8CMfAkvffqYD5ViEjGe8dD4LD3ks5qX4V-gaJpZM4JR3sD .
V1 is required for pods.io becuase there is a bug with V2/pods
However both v1 and v2 work on the same time on the same Wordpress installation?
Can be v2 used for the custom endpoint?
Following is a v2 custom endpoint which was developed few days ago for me and works fine.
https://github.com/distributev/edd-software-licences-rest/blob/master/edd-software-licences-rest.php
No, V1 can't be used with v2, and if they are both installed v1 takes priority.
Why WP Router is required?
My understanding was that you tried to use the latest V2 rest api but because of a bug in pods.io / REST you had to rollback to V1 rest API. So all the rest stuff should be handled by v1 wp rest.
So why is then WP Router still required? Why both v1 wp rest api and WP Router are used in the same time?