Code Monkey home page Code Monkey logo

Comments (5)

f2m2rd avatar f2m2rd commented on June 11, 2024

Hi Mateus, What version of Laravel are you using?

Sent from my iPhone

On Aug 11, 2016, at 3:40 AM, crotoan [email protected] wrote:

Hello,

is there any possibility to work with routing controller like:
Route::Controller('style', 'Api\ApiStyleController');

My structure is like
Api\ApiController -> this file handles requests and redirect to specific Controller , but when I do something like this:
Route::group(['prefix' => 'api/'], function(){
Route::Controller('style', 'Api\ApiStyleController');
Route::Controller('account', 'Api\ApiAccountController');

});
ApiDocs generate ApiStyle, ApiAccount but with methods from ApiController , don't know why :|

How can I do that?
Best Regards,
Mateusz


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from apidocs.

wishfulthinkerme avatar wishfulthinkerme commented on June 11, 2024

Hello,

5.2.43

from apidocs.

f2m2rd avatar f2m2rd commented on June 11, 2024

I believe It's because ApiController is really acting like a router and the parser thinks it should use the methods from ApiController.

Please create a small sample project so that I can try to replicate this issue.

On Aug 11, 2016, at 3:40 AM, crotoan [email protected] wrote:

Hello,

is there any possibility to work with routing controller like:
Route::Controller('style', 'Api\ApiStyleController');

My structure is like
Api\ApiController -> this file handles requests and redirect to specific Controller , but when I do something like this:
Route::group(['prefix' => 'api/'], function(){
Route::Controller('style', 'Api\ApiStyleController');
Route::Controller('account', 'Api\ApiAccountController');

});
ApiDocs generate ApiStyle, ApiAccount but with methods from ApiController , don't know why :|

How can I do that?
Best Regards,
Mateusz


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from apidocs.

wishfulthinkerme avatar wishfulthinkerme commented on June 11, 2024

Hello,

I can see methods when I use e.g anyStyle or postStyle *or *getStyle,
but when I name it like handleStyle - then it looks like parser doesn't
see it. Is that something I can edit directly in your library, or that's
Laravel ?

2016-08-11 15:56 GMT+02:00 f2m2rd [email protected]:

I believe It's because ApiController is really acting like a router and
the parser thinks it should use the methods from ApiController.

Please create a small sample project so that I can try to replicate this
issue.

On Aug 11, 2016, at 3:40 AM, crotoan [email protected] wrote:

Hello,

is there any possibility to work with routing controller like:
Route::Controller('style', 'Api\ApiStyleController');

My structure is like
Api\ApiController -> this file handles requests and redirect to specific
Controller , but when I do something like this:
Route::group(['prefix' => 'api/'], function(){
Route::Controller('style', 'Api\ApiStyleController');
Route::Controller('account', 'Api\ApiAccountController');

});
ApiDocs generate ApiStyle, ApiAccount but with methods from
ApiController , don't know why :|

How can I do that?
Best Regards,
Mateusz


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALMVgHnJLWEG6yOCulSFBMxy9dSrG6huks5qeyopgaJpZM4Jh_tF
.

Best Regards,
Mateusz

from apidocs.

f2m2rd avatar f2m2rd commented on June 11, 2024

The parser only understands the implicit methods that Laravel has defined, like any, get, post, put and delete.

On Aug 11, 2016, at 6:59 AM, crotoan [email protected] wrote:

Hello,

I can see methods when I use e.g anyStyle or postStyle *or *getStyle,
but when I name it like handleStyle - then it looks like parser doesn't
see it. Is that something I can edit directly in your library, or that's
Laravel ?

2016-08-11 15:56 GMT+02:00 f2m2rd [email protected]:

I believe It's because ApiController is really acting like a router and
the parser thinks it should use the methods from ApiController.

Please create a small sample project so that I can try to replicate this
issue.

On Aug 11, 2016, at 3:40 AM, crotoan [email protected] wrote:

Hello,

is there any possibility to work with routing controller like:
Route::Controller('style', 'Api\ApiStyleController');

My structure is like
Api\ApiController -> this file handles requests and redirect to specific
Controller , but when I do something like this:
Route::group(['prefix' => 'api/'], function(){
Route::Controller('style', 'Api\ApiStyleController');
Route::Controller('account', 'Api\ApiAccountController');

});
ApiDocs generate ApiStyle, ApiAccount but with methods from
ApiController , don't know why :|

How can I do that?
Best Regards,
Mateusz


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALMVgHnJLWEG6yOCulSFBMxy9dSrG6huks5qeyopgaJpZM4Jh_tF
.

Best Regards,
Mateusz

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from apidocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.