| Class | Apipie::Application |
| In: |
lib/apipie/application.rb
|
| Parent: | Object |
| resource_descriptions | [R] |
Is there a reason to interpret the DSL for this run? with specific setting for some environment there is no reason the dsl should be interpreted (e.g. no validations and doc from cache)
recursively searches what versions has the controller specified in resource_description? It‘s used to derivate the default value of versions for methods.
create new resource api description
get api for given method
There are two ways how this method can be used: 1) Specify both parameters
resource_name:
controller class - UsersController
string with resource name (plural) and version - "v1#users"
method_name: name of the method (string or symbol)
2) Specify only first parameter:
resource_name: string containing both resource and method name joined with '#' symbol. - "users#create" get default version - "v2#users#create" get specific version