Support

Home Forums Event Espresso Premium No route was found matching the URL and request method

No route was found matching the URL and request method

Posted: July 9, 2016 at 7:54 am

Viewing 6 reply threads


Alan Coyne

July 9, 2016 at 7:54 am

Hello,
I have upgraded the plugins and wordpress and now I am getting the below error.
[{“code”:”json_no_route”,”message”:”No route was found matching the URL and request method”}]
on below url
https://www.iregister.ie/v2/wp-json/ee/v4.6/events

wordpress version is 4.5.3
Event Espresso – REST API (EE4.x+) -> Version 3.0.0.beta.001
WP REST API – > version 1.2.5


Alan Coyne

July 9, 2016 at 7:55 am

Also tried wp rest api Version 2.0-beta13.1


Tony

  • Support Staff

July 11, 2016 at 5:03 am

Hi Alan,

Are you using the REST API for anything other then EE?

EE has the REST API built into core, you do not need any other plugins to use the EE endpoints, you DO need those plugins if you are using the REST API outside of EE.

So first try disabling the REST API plugins you have, refresh you permalinks (Settings -> Permalinks -> Save) and navigate to:

https://www.iregister.ie/v2/wp-json/

What does it show?


Alan Coyne

July 11, 2016 at 11:52 am

Thanks Tony,
I have disabled the ee rest api and refresh permalinks and also this link is working https://www.iregister.ie/v2/wp-json/
But while trying to get the events list, it is giving the same error as before.
I have tried below all links
https://www.iregister.ie/v2/wp-json/v4.9/events
https://www.iregister.ie/v2/wp-json/v4.9.2/events
https://www.iregister.ie/v2/wp-json/events

My Event Espresso version is 4.9.2.p

Thanks in advance


Josh

  • Support Staff

July 11, 2016 at 1:16 pm

Can you try disabling the other REST API plugins?

The current version (and going forward) events endpoint is:

/wp-json/ee/v4.8.36/events


Alan Coyne

July 12, 2016 at 11:38 am

Thanks Josh that works

But still not got the registrations/posts using same criteria as below

https://www.iregister.ie/v2/wp-json/ee/v4.8.36/registrations?filter%5Bwhere%5D%5BREG_ID%5D=11503&include=Answer.ANS_value,Answer.Question.*,Attendee.*,Event.EVT_ID&access_token=abc

Is there the different endpoints for all entities such as registrations , posts, attendees ,etc ?

How can we know the endpoints?


Josh

  • Support Staff

July 12, 2016 at 12:12 pm

The endpoints are listed in the discovery endpoint URL, which for your site is:
http://www.iregister.ie/v2/wp-json/

There’s also some documentation on how to build the queries:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/C–REST-API

You’ll also note that you’ll need to use some form of Authentication to access registration data, more info is here:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-introduction.md#authentication

Viewing 6 reply threads

The support post ‘No route was found matching the URL and request method’ 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