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

9 lines
254 B
Plaintext

#%RAML 1.0 Trait
usage: Use this trait for resources whose response body is a collection of items
responses:
200:
body:
application/json:
type: <<typeName>>[]
example: !include /examples/<<typeName|!pluralize>>.json