java-tutorials/raml/modularization/traits/hasResponseItem.raml

9 lines
233 B
Plaintext
Raw Normal View History

2016-02-06 12:32:12 -05:00
#%RAML 1.0 Trait
usage: Use this trait for resources whose response body is a single item
responses:
200:
body:
application/json:
type: <<typeName>>
example: !include /examples/<<typeName>>.json