feat: add API v2 support by adding APGroup and DNSRecord resource handling with generated code (#23)
* feat: add API v2 support by adding APGroup and DNSRecord resource handling with generated code * fix tests
This commit is contained in:
committed by
GitHub
parent
dca894e8e7
commit
aa188a6faa
4
codegen/v2/APGroup.json
Normal file
4
codegen/v2/APGroup.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "",
|
||||
"device_macs": [""]
|
||||
}
|
||||
10
codegen/v2/DNSRecord.json
Normal file
10
codegen/v2/DNSRecord.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"enabled": "true|false",
|
||||
"key": ".{1,256}",
|
||||
"port": "^[0-9][0-9]?$|^",
|
||||
"priority": "^[0-9][0-9]?$|^",
|
||||
"record_type": "A|AAAA|CNAME|MX|NS|PTR|SOA|SRV|TXT",
|
||||
"ttl": "^[0-9][0-9]?$|^",
|
||||
"value": ".{1,256}",
|
||||
"weight": "^[0-9][0-9]?$|^"
|
||||
}
|
||||
Reference in New Issue
Block a user