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.
Options

On which url can I find the Vanilla API 0.0.9-dev?

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.

Tagged:

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator

    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.

  • Options
    kramer65kramer65 New
    edited November 2013

    @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?

  • Options

    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!

  • Options
    KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    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

  • Options

    From the screenshot : 2.0.18.8 is his version

    There was an error rendering this rich post.

  • Options
    KasperKasper Scholar of the Bits Copenhagen Vanilla Staff

    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

  • Options
    peregrineperegrine MVP
    edited November 2013

    @Kasper said:
    Haha, thanks UnderDog! I've apparently gone blind overnight :)

    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.

Sign In or Register to comment.