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.

Categories API not working

edited November 2011 in Vanilla 2.0 - 2.8
Client wants forum info embedded in their site, /discussions.xml works as expected but /categories.xml returns this:

<?xml version="1.0" encoding="utf-8"?> <Data> <Breadcrumbs></Breadcrumbs> <Category></Category> <CategoryID></CategoryID> <CountDiscussions>0</CountDiscussions> <AnnounceData></AnnounceData> <Discussions></Discussions> </Data>

The documentation doesn't say anything about why this wouldn't work - the categories appear on the forum itself. I've tried deleting the cache ini files but am at a loss for why this isn't working.

Using the latest build (upgraded a previous version). Anyone know why this is happening?


  • Options
    do you mean categories.xml/all ??

    grep is your friend.

  • Options
    That works! Thankyou.

    The documentation says nothing about /all
  • Options
    x00x00 MVP
    edited November 2011
    Documentation is wrong, or misleading.

    Yep but api mirrors (approximately) what you would expect with the xhtml to be RESTful

    So if I go to categories/ I'm getting the root. To get all the categories categories/all

    grep is your friend.

  • Options

    I have recently downloaded the latest version of vanilla and the api calls dont work.
    I have no prior experience with vanilla.
    Can anyone guide me how to go about this.I have also installed the json api application by eleith , but that doesnt work either.

    I tried /vanilla/api/category
    Give 404 error.
  • Options
    I also tried /categories.xml/all

    still shows 404.
    Do i have to do some configure soemthing in order to use this api.
  • Options
    It should work without configuration. It should just be the same path as vanilla's index.php

Sign In or Register to comment.