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.
This discussion is related to the api (json) addon.
edited April 2010 in Vanilla 2.0 - 2.8
can you give me more information about your install? i'm using this on RC1 right now and it works. I do have mod-rewrite on, but most everything else is default.
there are other users on the forum that have this working for them too, so what we should do is try and figure out what is different from your install to mine and work from there.
Thanks for responding. I still can't get this to work... I made sure I have RC1 with a fresh install. Vanilla runs properly with or without mod_rewrite. I then uploaded the "api" directory to "/applications/api". I then enabled the API application in Vanilla in the Dashboard ("/index.php/settings/applications").
Now I can't find a way to access this api. I tried loading following urls in firefox and none worked.
Please note that I replaced http://example.com/ with my actual server url.
After much trial and error, I renamed the controller files to fit a different naming scheme:
session.php -> class.sessioncontroller.php
category.php -> class. categorycontroller.php
This seems to load some pages now! However, "api/category/index" gives me this error: "The "Format" class could not be found.".
Back to debugging...
yes, there is a lack of documentation (or at least there was when i built this) on integrating apis into vanilla 2 (but this makes sense as vanilla 2 has not been released...)
does this work for you now?
if so, could you send me the updated code? i haven't git pulled the latest vanilla, but i guess i should soon...