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

9 lines
233 B
Plaintext
Raw Normal View History

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