-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform-configs-storage.raml
53 lines (47 loc) · 1.68 KB
/
form-configs-storage.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#%RAML 1.0
title: FlexibleForms Configs Storage
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: Forms Configs Storage API
content: API for accessing flexible forms configs
types:
errors: !include raml-storage/raml-util/schemas/errors.schema
formConfig: !include raml-storage/schemas/common/formConfig.json
formConfigCollection: !include raml-storage/schemas/common/formConfigCollection.json
traits:
validate: !include raml-storage/raml-util/traits/validation.raml
pageable: !include raml-storage/raml-util/traits/pageable.raml
searchable: !include raml-storage/raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-storage/raml-util/rtypes/collection.raml
collection-item: !include raml-storage/raml-util/rtypes/item-collection.raml
/converter-storage/forms/configs:
description: API for managing form configs
type:
collection:
schemaCollection: formConfigCollection
schemaItem: formConfig
exampleCollection: !include raml-storage/examples/mod-source-record-storage/snapshotCollection.sample
exampleItem: !include raml-storage/examples/mod-source-record-storage/snapshot.sample
post:
description: "Create new form config"
get:
/{formName}:
displayName: "Forms configs"
description: "Get, Delete or Update a specific form config by form name"
type:
collection-item:
schema: formConfig
exampleItem: !include raml-storage/examples/mod-source-record-storage/snapshot.sample
put:
is: [validate]
responses:
200:
body:
application/json:
type: formConfig
delete:
responses:
204: