Support

Home Forums Event Espresso Premium REST API using links in collections

REST API using links in collections

Posted: July 6, 2017 at 9:45 pm

Viewing 2 reply threads


jxh

July 6, 2017 at 9:45 pm

Using the built-in WP REST API for ee4, I can get a list of all the registrations, but I want to see only a subset based on their links, not just their direct properties. Something like /wp-json/ee/v4.8.36/registrations?where[status.STS_code]=APPROVED only that doesn’t work. I can’t exactly iterate as I’m doing this all in single GET that dumps into an Excel sheet, up to now with complete success! Sorry if this is a noob question for using REST and HAL. I did get where[] to work for simpler things, but not for properties beyond a link.


Josh

  • Support Staff

July 7, 2017 at 7:41 am

Hi JXH,

This will work:

/wp-json/ee/v4.8.36/registrations?where[STS_ID]=RAP

See also:
https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-GET-filtering-results.md

and

https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-GET-including-specific-fields-and-related-entities-in-results.md


jxh

July 7, 2017 at 10:24 am

Perfect, thanks!

Viewing 2 reply threads

The support post ‘REST API using links in collections’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso