Re: Generic route for options on ERXRest

2016-07-27 Thread Flavio Donadio
Luiz, I am confused by your post. When you say "if a have an API to list all of the entries of a specific table, then I have a route like 'myURL/listAllEntries’”, it seems strange. You don’t need to create a route for that; you can just call ERXRouteRequestHandler.addDefaultRoutes() for each

Re: Generic route for options on ERXRest

2016-07-26 Thread Michael Kondratov
Have you considered creating a subclass? Michael Sent from my iPhone > On Jul 26, 2016, at 12:33 PM, Luiz Alfredo Carrara Bertusso > wrote: > > Hello developers, I've been facing a doubt about creating routes for a Rest > API using ERXRest. > In the Application I've been working there some A

Generic route for options on ERXRest

2016-07-26 Thread Luiz Alfredo Carrara Bertusso
Hello developers, I've been facing a doubt about creating routes for a Rest API using ERXRest. In the Application I've been working there some APIs for different purposes, but all of them need to access the method "optionsAction()". I have an implementation of this method on an abstract class and a