mpociot / laravel-apidoc-generator

Laravel API Documentation Generator
https://beyondco.de/docs/laravel-apidoc-generator/
MIT License
3.43k stars 614 forks source link

Automatically extract the parameters from FormRequest #755

Open unipenlabs opened 4 years ago

unipenlabs commented 4 years ago

Hello,

I used laravel-apidoc-generator v2 and it extracted the parameters from:

/**
 * Get the validation rules that apply to the request.
 *
 * @return array
 */
public function rules()
{
    return [
        'email' => 'required|email',
        'password' => 'required',
    ];
}

I switched to version 4.4 and the parameters are missing in the documentation. Any help is very appreciated! Thanks!

YogiLai commented 4 years ago

the same problem

YogiLai commented 4 years ago

3.0.0版已经移除相关功能,不再支持,改成@bodyParam see => https://github.com/mpociot/laravel-apidoc-generator/blob/master/CHANGELOG.md#30---sunday-21-october-2018 see => https://github.com/mpociot/laravel-apidoc-generator/issues/343

shalvah commented 4 years ago

https://scribe.readthedocs.io/en/latest/whats-new.html#formrequest-support-is-back