Support grails Restful controller #18

Closed
anthofo opened this Issue Aug 7, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@anthofo

anthofo commented Aug 7, 2014

Hi,

Given a resource, for instance a Book, grails allows to extend a class named RestfulController allowing to automatically redirect GET, PUT, DELETE, POST method to the right method, without having to specify an URL mapping for each method :
http://grails.org/doc/latest/guide/webServices.html#extendingRestfulController

Given the following url mapping :

 "/v1/classified"(resources: "classifiedAd", namespace: 'v1')

And the controller :

class ClassifiedAdController extends RestfulController {
   @RestApiMethod ...
   def show(String id) {
   }
} 

restapidoc computes the following url :

/classified ad/show.json

While the correct one is :

GET /classified/{id}

@anthofo anthofo referenced this issue Sep 1, 2014

Merged

Url mapping #25

@loic911

This comment has been minimized.

Show comment
Hide comment
@loic911

loic911 Dec 5, 2014

Owner

Its in 0.5.
Sorry for the delay!
Thanks

Owner

loic911 commented Dec 5, 2014

Its in 0.5.
Sorry for the delay!
Thanks

@loic911 loic911 closed this Dec 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment