Skip to content

Rackmonkey/apeApi-rdns-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

apeControl Reverse DNS Api

This api is modelled after the hetzner rdns api.

Routes

/rdns

[GET]

Returns an array of all set rdns records.

Example Response
[
  {
  "rdns": {
    "ip": "123.123.123.123",
    "ptr": "testen.de"
  }
 },
 {
  "rdns": {
    "ip": "124.124.124.124",
    "ptr": "your-server.de"
  }
 }
]
Error Codes
Status Code
404 NOT_FOUND

/rdns/:ip

[GET]

Returns the current set rdns record.

Example Response
{
  "rdns": {
  "ip": "123.123.123.123",
  "ptr": "testen.de"
 }
}
Error Codes
Status Code
404 IP_NOT_FOUND
404 RDNS_NOT_FOUND

[POST] / [PUT]

Set or update a rdns record.

Example Request
{
  "rdns": {
  "ip": "123.123.123.123",
  "ptr": "testen.de"
 }
}
Error Codes
Status Code
404 IP_NOT_FOUND
404 RDNS_NOT_FOUND
500 RDNS_CREATE_FAILED
500 RDNS_UPDATE_FAILED

[DELETE]

Deletes the rdns record.

Error Codes
Status Code
404 IP_NOT_FOUND
500 RDNS_DELETE_FAILED

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages