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.
On which url can I find the Vanilla API 0.0.9-dev?
kramer65
New
I'm trying to use the Vanilla API (here: http://vanillaforums.org/addon/api-application), but I'm having trouble finding the url under which I can access it. In the Dashboard under the Settings > Application Interface, I see the url http://localhost/api/, so I tried that, as well as using the ip (127.0.0.1/api), but both give me a 404 Not Found.
I've got vanilla forums hosted on my localhost on http://127.0.0.1/~kramer65/vanilla/ which would make me suspect that it is located under http://127.0.0.1/~kramer65/vanilla/api. Unfortunately, I also get a 404 there.
Any tips?
ps. I wanted to post it on the api addon page like I see it sometimes, but I don't understand how to do that.
0
Comments
I agree that asking a question about the addon is a little confusing. See the attached image for location of the link.
You will indeed access the api through
http://forums.example.com/api
but you need to actually perform a request since the api is designed to return a 404 if the endpoint isn't a valid resource.Use something like
http://127.0.0.1/~kramer65/vanilla/api/discussion/1
and see what the output is.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight - Thanks for the tip, unfortunately it doesn't work for me. I tried the following two combinations, but both give me a 404:
http://127.0.0.1/~kramer65/vanilla/api/discussion/1
http://127.0.0.1/api/discussion/1
Would you (or anybody else) have another tip on how to get this going?
ps. As you can see in the attached files, the api is actually enabled. It would be really great if I could get this going, because if we can use this API, my company will be using Vanilla forums for our new website. Any more tips would be greatly appreciated!
Like I mentioned on Github, what's the version of Vanilla you're using? The API is only compatible with 2.1+
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
From the screenshot : 2.0.18.8 is his version
There was an error rendering this rich post.
Haha, thanks @UnderDog! I've apparently gone blind overnight
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
not your fault. the version of vanilla the op is using could easily posted in text in the start of the discussion (as requested at the top of the vanilla forum). so people who answer don't have to scavenge hunt images
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.