Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 315 forks source link

Prevent route generation for some methods #640

Closed JoyceBabu closed 3 years ago

JoyceBabu commented 3 years ago

Restler is currently generating a route for every public method in the class. Is it possible to limit it to some methods only?

JoyceBabu commented 3 years ago

I was able to do this by marking the class as private with @access private and the whitelisted methods with @access public.

Arul- commented 3 years ago

You can also prefix the method name with _