Permalink
Find file Copy path
1322a16 Jul 4, 2018
2 contributors

Users who have contributed to this file

@jstoiko @sichvoge
20 lines (19 sloc) 443 Bytes
#%RAML 1.0
title: API with Types
types: # global type definitions that can be reused throughout this API
User: # define type named `User`
type: object
properties:
firstName: string
lastName: string
age:
type: integer
minimum: 0
maximum: 125
/users/{id}:
get:
responses:
200:
body:
application/json:
type: User # reference to global type definition