forked from Microservice-API-Patterns/MDSL-Specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTTPBindingDemo.mdsl
115 lines (103 loc) · 3.76 KB
/
HTTPBindingDemo.mdsl
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
API description HTTPBindingOptionsDemo
data type GenericParameterP P
data type ListOfBasicAtomicParameterTypes ("dataString":D<string>, "metadataString":MD<string>, "intIdentifier":ID<int>, "stringLink":L<string>)
data type PersonAsFlatParamaterTree {"person":D<string>, "street":D<string>, "zip":D<int>, "city":D<string>, "phoneNumbers":D<string>+}
endpoint type HeuristicEndpoint1
serves as INFORMATION_HOLDER_RESOURCE
exposes
operation createSomething with responsibility "POST"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation addSomething with responsibility "PUT"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
endpoint type HeuristicEndpoint2
serves as PROCESSING_RESOURCE and INFORMATION_HOLDER_RESOURCE
exposes
operation getSomething with responsibility RETRIEVAL_OPERATION
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation readSomething with responsibility "HEAD"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation retrieveSomething with responsibility "TRACE"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation searchSomething with responsibility "OPTIONS"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
endpoint type HeuristicEndpoint3
serves as "Another Role (not in MAP)"
exposes
operation putSomething
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation replaceSomething with responsibility "POST"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
endpoint type HeuristicEndpoint4
// serves as INFORMATION_HOLDER_RESOURCE
exposes
operation patchSomething
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation updateSomething with responsibility "PUT"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
endpoint type HeuristicEndpoint5
// serves as INFORMATION_HOLDER_RESOURCE
exposes
operation deleteSomething
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
operation removeSomething with responsibility "POST"
expecting
payload ListOfBasicAtomicParameterTypes
delivering
payload GenericParameterP
API provider NameHeuristicEndpointProvider1
offers HeuristicEndpoint1
at endpoint location "/endpoint1"
via protocol HTTP binding resource self at "" operation createSomething to GET
API provider NameHeuristicEndpointProvider21
offers HeuristicEndpoint2
at endpoint location "/endpoint21"
via protocol HTTP binding resource self at "" operation readSomething to POST
API provider NameHeuristicEndpointProvider22
offers HeuristicEndpoint2
at endpoint location "/endpoint22"
via protocol HTTP binding resource self at "" operation readSomething to POST // ignored?
API provider NameHeuristicEndpointProvider3
offers HeuristicEndpoint3
at endpoint location "/endpoint3"
via protocol Java
API provider NameHeuristicEndpointProvider41
offers HeuristicEndpoint3
at endpoint location "/endpoint41"
via protocol Java
API provider NameHeuristicEndpointProvider42
offers HeuristicEndpoint3
at endpoint location "/endpoint42"
via protocol HTTP binding resource self at "" operation putSomething to GET // ignored now