Skip to content

Commit 1bba13c

Browse files
authored
Merge pull request #1 from ptisp/joaograca
DNSSEC new endpoints
2 parents 6c4cb86 + 0e84c6b commit 1bba13c

File tree

1 file changed

+120
-1
lines changed

1 file changed

+120
-1
lines changed

spec/domains

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,22 @@
2626
],
2727
"expires":"2013-03-01",
2828
"status":"ok",
29-
"domain":"almouroltec.pt"
29+
"domain":"almouroltec.pt",
30+
"visible": "true",
31+
"dnssec": [
32+
{
33+
"key": "12636",
34+
"algorithm": "8",
35+
"digesttype": "2",
36+
"digest": "ce55ba36bb4de34e04211e69e649561b0bd7687874157ec8b262e10124dbec8d"
37+
},
38+
{
39+
"key": "12638",
40+
"algorithm": "8",
41+
"digesttype": "4",
42+
"digest": "faeac8b16738422e4fa82941a12bc9aabe24eb3814cf4550086bcdd10a9ed09120dad4427ea7d7cfce7aa26cd0520463"
43+
}
44+
]
3045
}
3146
},
3247
"nickname": "domainInfo",
@@ -682,6 +697,110 @@
682697
]
683698
}
684699
]
700+
},
701+
{
702+
"path": "/domains/{domain}/dnssec",
703+
"operations": [
704+
{
705+
"method": "POST",
706+
"summary": "Set new DNSSEC key",
707+
"notes": "",
708+
"type": {
709+
"result": "ok",
710+
"message": "DNSSEC key set successfully"
711+
},
712+
"nickname": "setDNSSEC",
713+
"authorizations": {},
714+
"parameters": [
715+
{
716+
"name": "key",
717+
"description": "DNSSEC Key Tag",
718+
"required": true,
719+
"type": "integer",
720+
"paramType": "body"
721+
},
722+
{
723+
"name": "algorithm",
724+
"description": "Number of the DNS Security algorithm used in the key generation.<br>Possible values available here: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml",
725+
"required": true,
726+
"type": "integer",
727+
"paramType": "body"
728+
},
729+
{
730+
"name": "digesttype",
731+
"description": "Number of the algorithm used in the DS.<br>Accepted values:<ul><li>1 (SHA-1);</li><li>2 (SHA-256);</li><li>3 (GOST R 34.11-94);</li><li>4 (SHA-384)</li></ul>",
732+
"required": true,
733+
"type": "integer",
734+
"paramType": "body"
735+
},
736+
{
737+
"name": "digest",
738+
"description": "Key's digest",
739+
"required": true,
740+
"type": "string",
741+
"paramType": "body"
742+
}
743+
],
744+
"responseMessages": [
745+
{
746+
"code": 404,
747+
"message": "{\"result\": \"nok\", \"message\": \"Object exists - There is already a DNSSEC with that KeyTag in that Domain.\"}"
748+
}
749+
]
750+
}
751+
]
752+
},
753+
{
754+
"path": "/domains/{domain}/dnssec",
755+
"operations": [
756+
{
757+
"method": "DELETE",
758+
"summary": "Removes an existing DNSSEC key",
759+
"notes": "",
760+
"type": {
761+
"result": "ok",
762+
"message": "DNSSEC key removed successfully"
763+
},
764+
"nickname": "deleteDNSSEC",
765+
"authorizations": {},
766+
"parameters": [
767+
{
768+
"name": "key",
769+
"description": "DNSSEC Key Tag",
770+
"required": true,
771+
"type": "integer",
772+
"paramType": "body"
773+
},
774+
{
775+
"name": "algorithm",
776+
"description": "Number of the DNS Security algorithm used in the key generation.<br>Possible values available here: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml",
777+
"required": true,
778+
"type": "integer",
779+
"paramType": "body"
780+
},
781+
{
782+
"name": "digesttype",
783+
"description": "Number of the algorithm used in the DS.<br>Accepted values:<ul><li>1 (SHA-1);</li><li>2 (SHA-256);</li><li>3 (GOST R 34.11-94);</li><li>4 (SHA-384)</li></ul>",
784+
"required": true,
785+
"type": "integer",
786+
"paramType": "body"
787+
},
788+
{
789+
"name": "digest",
790+
"description": "Key's digest",
791+
"required": true,
792+
"type": "string",
793+
"paramType": "body"
794+
}
795+
],
796+
"responseMessages": [
797+
{
798+
"code": 404,
799+
"message": "{\"result\": \"nok\", \"message\": \"Object does not exist - There is no DNSSEC with that KeyTag.\"}"
800+
}
801+
]
802+
}
803+
]
685804
}
686805
],
687806
"models": {

0 commit comments

Comments
 (0)