java-tutorials/raml/modularization/traits/hasResponseCollection.raml
Krzysztof Majewski 3453b7a18b BAEL-2513
2019-10-30 13:51:17 +01:00

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