A set of common RAML Types, Traits and other stuff.
uses:
Paysera: https://raw.githubusercontent.com/paysera/lib-raml-common/{version}/rest.raml
Replace {version}
with latest tag.
Provides mostly used items when building RESTful APIs
- Types:
File
- common used properties for file (name, size, content, mime type).Money
- holds amount ant currency.Result
- used for pagination, holdsitems
- list of returned objects. Ofter used together withResultMetadata
- gives info aboutitems
count, page number and other pagination related stuff.
- Traits:
Filter
- provides SQL-likeResult
filtering.
- Annotation Types
datetimeTimestamp
- used to markinteger
property as DateTime instanceenitityType
- used to mark Type recognisable as EntitystreamResponse
- used to mark Response recognisable as Stream