Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Page Not Found when trying to access API endpoint
Swennet
New
I've been trying for a while to get the API 0.4.0 addon to work, but I just can't seem to figure it out. I keep getting a "Page Not Found" error when trying to access the API endpoint.
https://mysite.com/community/api/discussions
(accessed directly through the browser)
Should this URL display anything other than Vanilla's "Page Not Found" page?
Tagged:
0
Comments
Bumping this because I desperately need to get this to work.
Can anyone confirm if they have the same issue on 2.3?
Please take a look at the documentation. I think you should be able to find your answers there: https://github.com/kasperisager/vanilla-api/wiki
if getting a list of discussions is all you need you have some more options:
https://vanillaforums.org/discussions.json
https://vanillaforums.org/discussions?DeliveryMethod=JSON
https://vanillaforums.org/discussions?DeliveryMethod=JSON&DeliveryType=VIEW&
Thank you for the reply @R_J. I had already looked through to documentation but couldn't find anything to help me. Maybe I just don't fully grasp the way it's supposed to work.
I have tried two methods of accessing the API addon. One is by simply browsing to the API endpoint in my browser, the other is by following this tutorial. Both of them returned a "Page not Found" error.
I created a local test server, installed Vanilla and the API addon to see if I can get it to work on a fresh install. Same result... "Page not Found".
So either I'm doing something wrong (and I can't figure out what), or the addon simply isn't compatible with 2.3.
I installed Vanilla 2.2.1 + API 0.4.0 on a test server. Worked like a charm.
So it's an issue with 2.3 specifically. Real shame since I'm using PHP7 on my development server...
I've released a version compatible with Vanilla 2.3: https://github.com/kasperisager/vanilla-api/tree/v0.5.0
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
@Kasper
Thank you so much! This really halted my development process for a while, happy to continue my project this new year