* [JAVA-13854] added parent module * [JAVA-13854] moved apache-tapestry(submodule) to web-modules(parent) * [JAVA-13854] moved bootique(submodule) to web-modules(parent) * [JAVA-13854] moved dropwizard(submodule) to web-modules(parent) * [JAVA-13854] moved blade(submodule) to web-modules(parent) * [JAVA-13854] moved java-lite(submodule) to web-modules(parent) * [JAVA-13854] moved jooby(submodule) to web-modules(parent) * [JAVA-13854] moved linkrest(submodule) to web-modules(parent) * [JAVA-13854] moved ninja(submodule) to web-modules(parent) * [JAVA-13854] moved ratpack(submodule) to web-modules(parent) * [JAVA-13854] moved resteasy(submodule) to web-modules(parent) * [JAVA-13854] moved restx(submodule) to web-modules(parent) * [JAVA-13854] moved spark-java(submodule) to web-modules(parent) * [JAVA-13854] moved vraptor(submodule) to web-modules(parent) * [JAVA-13854] delete modules that were moved * [JAVA-13854] * [JAVA-13854] * [JAVA-13854] delete ninja submodule + moved raml(submodule) to web-modules(parent) * [JAVA-13854] moved gwt(submodule) to web-modules(parent) * [JAVA-13854] moved jakarta-ee(submodule) to web-modules(parent) * [JAVA-13854] moved javax-servlets(submodule) to web-modules(parent) * [JAVA-13854] moved javax-servlets-2(submodule) to web-modules(parent) * [JAVA-13854] moved jee-7(submodule) to web-modules(parent) * [JAVA-13854] moved play-framework(not a module) to web-modules * [JAVA-13854] fix failing test * [JAVA-13854] moved struts-2(submodule) to web-modules(parent) * [JAVA-13854] moved wicket(submodule) to web-modules(parent) * [JAVA-13854] deleted modules that were moved to web-modules * JAVA-13854 Removed moved modules from the main pom.xml Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com> Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
#%RAML 1.0 Library
|
|
# This is the file /libraries/traits.raml
|
|
usage: This library defines some basic traits
|
|
traits:
|
|
hasRequestItem:
|
|
usage: Use this trait for resources whose request body is a single item
|
|
body:
|
|
application/json:
|
|
type: <<typeName>>
|
|
hasResponseItem:
|
|
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
|
|
hasResponseCollection:
|
|
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
|
|
hasNotFound:
|
|
usage: Use this trait for resources that could respond with a 404 status
|
|
responses:
|
|
404:
|
|
body:
|
|
application/json:
|
|
type: Error
|
|
example: !include /examples/Error.json
|