#%RAML 1.0
title: Example API
version: v1
types:
Order:
type: object
properties:
id:
type: integer
date:
type: integer
Ext_type:
type: object
properties:
ext_type_property:
type: string
Order_ext:
type: [Order,Ext_type]
#%RAML 1.0
title: Example API
version: v1
types:
Dictonary_1:
type: array
items: string
Dictonary_item:
type: object
properties:
name:
type: string
value:
type: string
Dictonary_2:
type: array
items: Dictonary_item
/Dictonary_1:
post:
body:
application/json:
type: Dictonary_1
example: |
[
"item1",
"item2",
"item3"
]
/Dictonary_2:
post:
body:
application/json:
type: Dictonary_2
example: |
[
{
"name": "name1",
"value": "item1"
},
{
"name": "name2",
"value": "item2"
}
]
/Organizations:
type: collection-item
/{guid}:
type: item
#%RAML 1.0 ResourceType
description: Элемент <<resourcePathName | !singularize>>
uriParameters:
guid:
pattern: |
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
get:
is: [secured]
description: Получить элемент <<resourcePathName | !singularize>>
responses:
200:
body:
application/json:
type: <<resourcePathName | !singularize>>
404:
description: Ресурс не найден