laravel-json-api/laravel

How to include request classes so that other libraries can inspect them?

aruku opened this issue · 1 comments

aruku commented

I've been trying to use a library like https://github.com/RonasIT/laravel-swagger, but it has not been possible because it needs the request class in the controller to inspect it in order to generate the documentation.

Is currently there a way to do this? Could it be implemented somehow?

For reference, here is the thread I opened in that repo: RonasIT/laravel-swagger#86

Unfortunately I'm having to remove the request classes, because to implement Atomic Operations we need to decouple the implementation from Laravel's form requests. That is explained in #238

So we'll need to implement our own documentation generation, which is something that can be looked at after the v4 implementation.