Luracast / Restler-API-Explorer

Restler API Explorer is a tweaked version of Swagger UI, a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://luracast.com/products/restler/
94 stars 29 forks source link

Cannot get explorer working fine with latest RC5 version #11

Closed alvarolb closed 10 years ago

alvarolb commented 10 years ago

It seems that Restler explorer is not working fine with latest restler version.

For example, if I create a method like below, i can modify index and count on explorer, but they get never get submitted to request. The previous version was working fine. Also the new version set those items in body if i don't put {@from url}.

Am I missing something?

    /**
     * Fetch all items
     *
     * Return all items from database.
     *
     * @param int $index Start index (Defaults to 0) {@from url}
     * @param int $count Max items to fetch (Defaults to 50) {@from url}
     * @url GET
     * @return array
     */
    function get($index = 0, $count = 50)
    {
        return Database::get($index, $count);
    }
olaznog10 commented 10 years ago

I found this problem when I updated to RC5 version. Did you change anything?

Arul- commented 10 years ago

@olaznog10 RC5 prefers body first

You should use {@from path} and NOT {@from url}