Trait
class, which are created from ApiDefinition#trait
.ApiDefinition#describe
will also include details of the defined traits.ResourceDefinition#describe
and ActionDefinition#describe
will also include the names of the used traits.instance_eval
-ed on the target.ResourceDefinition.routing
. Use ResourceDefinition.prefix
to define resource-level route prefixes instead.base_path
property defined in ApiDefinition#info
will now appear in the routing paths 'base' (instead of simply being used for documentation purposes). Note: unlike other info at that level, a global (unversioned)base_path
is not overriden by specific version, rather the specific version's path is appended to the global path.ResourceDefinition
or inside a routing
block of an ActionDefinition are now additive. For example:Traits
, which will follow exactly the same additive rules.''
or '//'
.base_params
to ApiDefinition#info
as a way to share common action paramsbase_params
may be defined for a specific Api version, which will make sharing params across all Resource definitions of that version)base_params
may be defined in the Global Api section, which will make the parameters shared across all actions of all defined Api versions.MediaType#describe
to include the correct string representation of its identifier.routing
blocks can now take any extra options which will be passed down to the Mustermann routing engine. Unknown options will be ignored!praxis routes
or rake praxis:routes
) will now include any options defined in a route.*
pattern and the :except
Mustermann options (along with the required :splat
attribute).prefix
and trait
changes