loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Extract domain name from @RestApiObject annotation #27

Closed anthony-foulfoin closed 9 years ago

anthony-foulfoin commented 9 years ago

Given this domain class

@RestApiObject(name = "annonce")
class ClassifiedAd {
}

and the following update method :

@RestApi [...]
class ClassifiedAdController {
    @RestApiMethod [...]
    def update() {

   }
}

A body object is correctly detected by the plugin, but the object name is simply extracted from the controller one : "classified ad", while I'm waiting the plugin to use the name specified in the domain class @RestApiObject annotation : "annonce"

loic911 commented 9 years ago

Available in 0.3.1 Thanks