java-tutorials/raml/modularization/traits/hasResponseItem.raml
2017-11-17 21:24:47 -03:00

9 lines
233 B
Plaintext
Executable File

#%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