-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsmtp-configuration.raml
56 lines (50 loc) · 1.64 KB
/
smtp-configuration.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
54
55
56
#%RAML 1.0
title: SMTP server configuration
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: SMTP server configuration API
content: <b>API for managing SMTP server configuration</b>
types:
smtp-configurations: !include smtp-configurations.json
smtp-configuration: !include smtp-configuration.json
errors: !include raml-util/schemas/errors.schema
parameters: !include raml-util/schemas/parameters.schema
traits:
language: !include raml-util/traits/language.raml
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
validate: !include raml-util/traits/validation.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/smtp-configuration:
displayName: SMTP configurations
type:
collection:
exampleCollection: !include examples/smtp-configurations.sample
exampleItem: !include examples/smtp-configuration.sample
schemaCollection: smtp-configurations
schemaItem: smtp-configuration
get:
is: [pageable,
searchable: {description: "by using CQL", example: "ssl=true"}]
post:
is: [validate]
body:
application/json:
type: smtp-configuration
/{smtpConfigurationId}:
type:
collection-item:
exampleItem: !include examples/smtp-configuration.sample
schema: smtp-configuration
get:
description: "Get SMTP configuration"
put:
description: "Update SMTP configuration"
is: [ validate ]
delete:
description: "Delete SMTP configuration"
is: [ language ]