@itentialopensource/adapter-gogetssl 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +48 -0
- package/CONTRIBUTING.md +158 -0
- package/LICENSE +201 -0
- package/README.md +687 -0
- package/adapter.js +5428 -0
- package/adapterBase.js +1028 -0
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Account/action.json +46 -0
- package/entities/Account/mockdatafiles/getAccountBalance-default.json +5 -0
- package/entities/Account/mockdatafiles/getAccountDetails-default.json +18 -0
- package/entities/Account/schema.json +31 -0
- package/entities/CSR/action.json +64 -0
- package/entities/CSR/mockdatafiles/decodeCSR-default.json +6 -0
- package/entities/CSR/mockdatafiles/generateCSR-default.json +5 -0
- package/entities/CSR/schema.json +98 -0
- package/entities/DCV/action.json +84 -0
- package/entities/DCV/mockdatafiles/domainGetFromWhois-default.json +5 -0
- package/entities/DCV/mockdatafiles/getDomainAlternative-default.json +24 -0
- package/entities/DCV/mockdatafiles/getDomainEmails-default.json +5 -0
- package/entities/DCV/mockdatafiles/getDomainEmailsForGeotrust-default.json +10 -0
- package/entities/DCV/schema.json +33 -0
- package/entities/Invoices/action.json +67 -0
- package/entities/Invoices/mockdatafiles/getAllInvoices-default.json +27 -0
- package/entities/Invoices/mockdatafiles/getOrderInvoice-default.json +13 -0
- package/entities/Invoices/mockdatafiles/getUnpaidInvoices-default.json +60 -0
- package/entities/Invoices/schema.json +43 -0
- package/entities/LEI/action.json +127 -0
- package/entities/LEI/mockdatafiles/createNewLEI-default.json +13 -0
- package/entities/LEI/mockdatafiles/getLeiStatus-default.json +5 -0
- package/entities/LEI/schema.json +46 -0
- package/entities/Orders/action.json +249 -0
- package/entities/Orders/mockdatafiles/addSSLOrder-default.json +59 -0
- package/entities/Orders/mockdatafiles/addSSLSANOrder-default.json +10 -0
- package/entities/Orders/mockdatafiles/cancelOrder-default.json +4 -0
- package/entities/Orders/mockdatafiles/comodoClaimFreeEV-default.json +5 -0
- package/entities/Orders/mockdatafiles/getAllSSLOrders-default.json +40 -0
- package/entities/Orders/mockdatafiles/getOrderStatus-default.json +105 -0
- package/entities/Orders/mockdatafiles/getOrdersStatuses-default.json +32 -0
- package/entities/Orders/mockdatafiles/getTotalOrders-default.json +4 -0
- package/entities/Orders/mockdatafiles/getUnpaidOrders-default.json +131 -0
- package/entities/Orders/mockdatafiles/recheckCAA-default.json +5 -0
- package/entities/Orders/schema.json +459 -0
- package/entities/Products/action.json +151 -0
- package/entities/Products/mockdatafiles/getAllProductPrices-default.json +10 -0
- package/entities/Products/mockdatafiles/getAllProducts-default.json +110 -0
- package/entities/Products/mockdatafiles/getProductAgreement-default.json +5 -0
- package/entities/Products/mockdatafiles/getProductPrice-default.json +50 -0
- package/entities/Products/mockdatafiles/getSslProduct-default.json +29 -0
- package/entities/Products/mockdatafiles/getSslProducts-default.json +325 -0
- package/entities/Products/schema.json +47 -0
- package/entities/Validation/action.json +145 -0
- package/entities/Validation/mockdatafiles/changeDcv-default.json +12 -0
- package/entities/Validation/mockdatafiles/changeDomainsValidationMethod-default.json +4 -0
- package/entities/Validation/mockdatafiles/resend-default.json +5 -0
- package/entities/Validation/mockdatafiles/resendValidationEmail-default.json +5 -0
- package/entities/Validation/mockdatafiles/revalidate-default.json +5 -0
- package/entities/Validation/schema.json +91 -0
- package/entities/Webservers/action.json +25 -0
- package/entities/Webservers/mockdatafiles/getWebServers-default.json +149 -0
- package/entities/Webservers/schema.json +41 -0
- package/error.json +184 -0
- package/package.json +83 -0
- package/pronghorn.json +8799 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +339 -0
- package/report/gogetssl_apimatic_openapi3.json +21135 -0
- package/sampleProperties.json +106 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +1746 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +4765 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/pre-commit.sh +27 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +445 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getGenerics",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createGeneric",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": ""
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "updateGeneric",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "PUT",
|
|
49
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"sendGetBody": false,
|
|
55
|
+
"requestDatatype": "JSON",
|
|
56
|
+
"responseDatatype": "JSON",
|
|
57
|
+
"headers": {},
|
|
58
|
+
"responseObjects": [
|
|
59
|
+
{
|
|
60
|
+
"type": "default",
|
|
61
|
+
"key": "",
|
|
62
|
+
"mockFile": ""
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "patchGeneric",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "PATCH",
|
|
70
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
71
|
+
"requestSchema": "schema.json",
|
|
72
|
+
"responseSchema": "schema.json",
|
|
73
|
+
"timeout": 0,
|
|
74
|
+
"sendEmpty": false,
|
|
75
|
+
"sendGetBody": false,
|
|
76
|
+
"requestDatatype": "JSON",
|
|
77
|
+
"responseDatatype": "JSON",
|
|
78
|
+
"headers": {},
|
|
79
|
+
"responseObjects": [
|
|
80
|
+
{
|
|
81
|
+
"type": "default",
|
|
82
|
+
"key": "",
|
|
83
|
+
"mockFile": ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "deleteGeneric",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "DELETE",
|
|
91
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
97
|
+
"requestDatatype": "JSON",
|
|
98
|
+
"responseDatatype": "JSON",
|
|
99
|
+
"headers": {},
|
|
100
|
+
"responseObjects": [
|
|
101
|
+
{
|
|
102
|
+
"type": "default",
|
|
103
|
+
"key": "",
|
|
104
|
+
"mockFile": ""
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "generic_schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getGeneric",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getGenerics",
|
|
14
|
+
"createGeneric",
|
|
15
|
+
"updateGeneric",
|
|
16
|
+
"patchGeneric",
|
|
17
|
+
"deleteGeneric"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getToken",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/login",
|
|
8
|
+
"requestSchema": "schemaTokenReq.json",
|
|
9
|
+
"responseSchema": "schemaTokenResp.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "",
|
|
13
|
+
"responseDatatype": "",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"sso": {
|
|
16
|
+
"protocol": "",
|
|
17
|
+
"host": "",
|
|
18
|
+
"port": 0
|
|
19
|
+
},
|
|
20
|
+
"responseObjects": [
|
|
21
|
+
{
|
|
22
|
+
"type": "default",
|
|
23
|
+
"key": "",
|
|
24
|
+
"mockFile": "mockdatafiles/getToken-default.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "healthcheck",
|
|
30
|
+
"protocol": "REST",
|
|
31
|
+
"method": "GET",
|
|
32
|
+
"entitypath": "{base_path}/{version}/healthcheck?{query}",
|
|
33
|
+
"requestSchema": "schema.json",
|
|
34
|
+
"responseSchema": "schema.json",
|
|
35
|
+
"timeout": 0,
|
|
36
|
+
"sendEmpty": false,
|
|
37
|
+
"sendGetBody": false,
|
|
38
|
+
"requestDatatype": "",
|
|
39
|
+
"responseDatatype": "",
|
|
40
|
+
"headers": {},
|
|
41
|
+
"responseObjects": [
|
|
42
|
+
{
|
|
43
|
+
"type": "default",
|
|
44
|
+
"key": "",
|
|
45
|
+
"mockFile": "mockdatafiles/healthcheck-default.json"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "healthcheck",
|
|
12
|
+
"enum": [
|
|
13
|
+
"healthcheck"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"definitions": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": ".system-schemaTokenReq.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"username": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "username to log in with",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "username"
|
|
27
|
+
},
|
|
28
|
+
"password": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "password to log in with",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "password"
|
|
38
|
+
},
|
|
39
|
+
"token": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "token returned by system",
|
|
42
|
+
"parse": false,
|
|
43
|
+
"encode": false,
|
|
44
|
+
"placement": "BODY",
|
|
45
|
+
"encrypt": {
|
|
46
|
+
"type": "AES",
|
|
47
|
+
"key": ""
|
|
48
|
+
},
|
|
49
|
+
"external_name": "token"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"definitions": {}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": ".system-schemaTokenResp.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
},
|
|
17
|
+
"username": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "username to log in with",
|
|
20
|
+
"parse": false,
|
|
21
|
+
"encode": false,
|
|
22
|
+
"encrypt": {
|
|
23
|
+
"type": "AES",
|
|
24
|
+
"key": ""
|
|
25
|
+
},
|
|
26
|
+
"external_name": "username"
|
|
27
|
+
},
|
|
28
|
+
"password": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "password to log in with",
|
|
31
|
+
"parse": false,
|
|
32
|
+
"encode": false,
|
|
33
|
+
"encrypt": {
|
|
34
|
+
"type": "AES",
|
|
35
|
+
"key": ""
|
|
36
|
+
},
|
|
37
|
+
"external_name": "password"
|
|
38
|
+
},
|
|
39
|
+
"token": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "token returned by system",
|
|
42
|
+
"parse": false,
|
|
43
|
+
"encode": false,
|
|
44
|
+
"placement": "BODY",
|
|
45
|
+
"encrypt": {
|
|
46
|
+
"type": "AES",
|
|
47
|
+
"key": ""
|
|
48
|
+
},
|
|
49
|
+
"external_name": "token"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"definitions": {}
|
|
53
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getAccountDetails",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/account?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/getAccountDetails-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getAccountBalance",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/account/balance?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": "mockdatafiles/getAccountBalance-default.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"first_name": "string",
|
|
3
|
+
"last_name": "string",
|
|
4
|
+
"company_name": "string",
|
|
5
|
+
"company_vat": "string",
|
|
6
|
+
"company_phone": "string",
|
|
7
|
+
"phone": "string",
|
|
8
|
+
"fax": "string",
|
|
9
|
+
"address": "string",
|
|
10
|
+
"city": "string",
|
|
11
|
+
"state": "string",
|
|
12
|
+
"postal_code": "string",
|
|
13
|
+
"country": "string",
|
|
14
|
+
"email": "string",
|
|
15
|
+
"reseller_plan": "string",
|
|
16
|
+
"currency": "string",
|
|
17
|
+
"success": true
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getAccountDetails",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getAccountDetails",
|
|
14
|
+
"getAccountBalance"
|
|
15
|
+
],
|
|
16
|
+
"external_name": "ph_request_type"
|
|
17
|
+
},
|
|
18
|
+
"authKey": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Request token obtained from Auth method",
|
|
21
|
+
"parse": false,
|
|
22
|
+
"encode": false,
|
|
23
|
+
"encrypt": {
|
|
24
|
+
"type": "AES",
|
|
25
|
+
"key": ""
|
|
26
|
+
},
|
|
27
|
+
"external_name": "auth_key"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"definitions": {}
|
|
31
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "decodeCSR",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/tools/csr/decode?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "URLENCODE",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": "mockdatafiles/decodeCSR-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "generateCSR",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "POST",
|
|
27
|
+
"entitypath": "{base_path}/{version}/tools/csr/generate?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"requestDatatype": "URLENCODE",
|
|
33
|
+
"responseDatatype": "JSON",
|
|
34
|
+
"headers": {},
|
|
35
|
+
"responseObjects": [
|
|
36
|
+
{
|
|
37
|
+
"type": "default",
|
|
38
|
+
"key": "",
|
|
39
|
+
"mockFile": "mockdatafiles/generateCSR-default.json"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "validateCSR",
|
|
45
|
+
"protocol": "REST",
|
|
46
|
+
"method": "POST",
|
|
47
|
+
"entitypath": "{base_path}/{version}/tools/csr/validate?{query}",
|
|
48
|
+
"requestSchema": "schema.json",
|
|
49
|
+
"responseSchema": "schema.json",
|
|
50
|
+
"timeout": 0,
|
|
51
|
+
"sendEmpty": false,
|
|
52
|
+
"requestDatatype": "URLENCODE",
|
|
53
|
+
"responseDatatype": "JSON",
|
|
54
|
+
"headers": {},
|
|
55
|
+
"responseObjects": [
|
|
56
|
+
{
|
|
57
|
+
"type": "default",
|
|
58
|
+
"key": "",
|
|
59
|
+
"mockFile": ""
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csr_code": "-----BEGIN CERTIFICATE REQUEST-----\nMIICyzCCAbMCAQAwgYUxCzAJBgNVBAYTAkxWMRAwDgYDVQQIDAdMYXRnYWxlMRMw\nEQYDVQQHDApEYXVnYXZwa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gst\n7BpjzHYmdatKXhSRCEVVDx/d4rVYRpbsmZen9AfOjY6DwdWfK8BALiZfDyIkWXzG\nxK43K9CIF6hw4Ivx/VDa/4M5zQxzOPBDi59f5ysi3qNBAyF0VHFr16xfphUCgYAv\nwMCNeZGkPuHrLxbNmmvC1gO1oiTxpvMaH/uN8WwVv2MqeD765QGdpyGKiS4otGRM\nIP9slHH3ijMMD2qbEeW24Xysda48HoqW8nBmG+i9w0PV86FTM3Y8XUoVsuDahLfZ\nJqItMj2fAtKa/ltKfnsKpI6K33Hgs/eL0rqB0wZQEQKBgEOLZJSkOIFFGqaxvAAZ\naR5mnCYO/CGzupH42KNgyYNinvGV5l16QaaCpNIZcxV3x/HBmcx2Gr+4SIpr4N9j\nJ/oC4WwOoV0nLCYd7ZnznhDBdYvh60oeni7SGhVVgHyUN8+rn1/QxidCHHuZ3nyu\nMqEVYn1vanD47bJoe8pbgj2L\n-----END PRIVATE KEY-----",
|
|
4
|
+
"success": true
|
|
5
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "decodeCSR",
|
|
12
|
+
"enum": [
|
|
13
|
+
"decodeCSR",
|
|
14
|
+
"generateCSR",
|
|
15
|
+
"validateCSR"
|
|
16
|
+
],
|
|
17
|
+
"external_name": "ph_request_type"
|
|
18
|
+
},
|
|
19
|
+
"csrCommonname": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "FQDN csr is generated for, can also be IP",
|
|
22
|
+
"parse": false,
|
|
23
|
+
"encode": false,
|
|
24
|
+
"encrypt": {
|
|
25
|
+
"type": "AES",
|
|
26
|
+
"key": ""
|
|
27
|
+
},
|
|
28
|
+
"external_name": "csr_commonname"
|
|
29
|
+
},
|
|
30
|
+
"csrOrganization": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "organization name",
|
|
33
|
+
"parse": false,
|
|
34
|
+
"encode": false,
|
|
35
|
+
"encrypt": {
|
|
36
|
+
"type": "AES",
|
|
37
|
+
"key": ""
|
|
38
|
+
},
|
|
39
|
+
"external_name": "csr_organization"
|
|
40
|
+
},
|
|
41
|
+
"csrDepartment": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "",
|
|
44
|
+
"parse": false,
|
|
45
|
+
"encode": false,
|
|
46
|
+
"encrypt": {
|
|
47
|
+
"type": "AES",
|
|
48
|
+
"key": ""
|
|
49
|
+
},
|
|
50
|
+
"external_name": "csr_department"
|
|
51
|
+
},
|
|
52
|
+
"csrCity": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "",
|
|
55
|
+
"parse": false,
|
|
56
|
+
"encode": false,
|
|
57
|
+
"encrypt": {
|
|
58
|
+
"type": "AES",
|
|
59
|
+
"key": ""
|
|
60
|
+
},
|
|
61
|
+
"external_name": "csr_city"
|
|
62
|
+
},
|
|
63
|
+
"csrState": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "",
|
|
66
|
+
"parse": false,
|
|
67
|
+
"encode": false,
|
|
68
|
+
"encrypt": {
|
|
69
|
+
"type": "AES",
|
|
70
|
+
"key": ""
|
|
71
|
+
},
|
|
72
|
+
"external_name": "csr_state"
|
|
73
|
+
},
|
|
74
|
+
"csrCountry": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "valid ISO-3166 country code",
|
|
77
|
+
"parse": false,
|
|
78
|
+
"encode": false,
|
|
79
|
+
"encrypt": {
|
|
80
|
+
"type": "AES",
|
|
81
|
+
"key": ""
|
|
82
|
+
},
|
|
83
|
+
"external_name": "csr_country"
|
|
84
|
+
},
|
|
85
|
+
"csrEmail": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "",
|
|
88
|
+
"parse": false,
|
|
89
|
+
"encode": false,
|
|
90
|
+
"encrypt": {
|
|
91
|
+
"type": "AES",
|
|
92
|
+
"key": ""
|
|
93
|
+
},
|
|
94
|
+
"external_name": "csr_email"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"definitions": {}
|
|
98
|
+
}
|