-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPC_API
61 lines (44 loc) · 1.1 KB
/
RPC_API
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
RESTful
GET = Get request
POST = Create new object
PUT = Partial update of an object
DELETE = Delete object
HTTP:
GET/POST/PUT/DELETE /<plugin>/<function>/<parameters ...>
<data>
Plugin->(Create/Read/Update/Delete)<Function>(<data>, <parameters ...>)
JSON:
as Request: Content-Type: application/json
as Response: Accept: */json
XML:
as Request: Content-Type: text/xml
as Response: Accept: */xml
SOAP 1.1
- All WSDL's/Request/Response XML has been verified with SoapUI
WSDL: /<plugin>.wsdl
Endpoint: /<plugin>
Explicit endpoint: /<plugin>.soap
Content-Type: application/soap+xml
RESTful to CRUD name conversion:
GET => READ
POST => CREATE
PUT => UPDATE
DELETE => DELETE
Function name conversion:
Plugin->(Create/Read/Update/Delete)<Function>(<data>)
Example:
/lim/soap
Lim->ReadVersion()
XML-RPC
Endpoint: /<plugin>
Explicit endpoint: /<plugin>.xml-rpc
Content-Type: text/xml
JSON-RPC v2
Endpoint: /<plugin>
Explicit endpoint: /<plugin>.json-rpc
Content-Type: application/json
Limitations
- No starting arrays
- No arrays in arrays
Ports/Services
Agent tcp/5353