Function | - Status - |
---|---|
List Domain | ✅ |
List Hosts | ✅ |
Add | ✅ |
Update itens | ⏳ |
Remove itens | ⏳ |
Docker | ⏳ |
Requires Node.js v10+ to run.
Install the dependencies and devDependencies and start the server.
git clone https://github.com/ttayson/HurricaneAPI.git
cd HurricaneAPI
npm install
npm start
git clone https://github.com/ttayson/HurricaneAPI.git
cd HurricaneAPI
docker-compose up -d --build
Specify your port to run the instance, the default is 3000
If necessary, change the port in docker-compose
curl --request POST \
--url http://localhost:3000/api/list \
--header 'Content-Type: application/json' \
--data '{
"login": "LOGIN",
"pass": "PASSWORD"
}'
wget --quiet \
--method POST \
--header 'Content-Type: application/json' \
--body-data '{\n "login": "LOGIN",\n "pass": "PASSWORD"\n}' \
--output-document \
- http://localhost:3000/api/list
curl --request POST \
--url http://localhost:3000/api/list \
--header 'Content-Type: application/json' \
--data '{
"login": "LOGIN",
"pass": "PASSWORD",
"domain": "VALID DOMAIN"
}'
wget --quiet \
--method POST \
--header 'Content-Type: application/json' \
--body-data '{\n "login": "LOGIN",\n "pass": "PASSWORD",\n "domain": "VALID DOMAIN"\n}' \
--output-document \
- http://localhost:3000/api/list
curl --request POST \
--url http://localhost:3000/api/add \
--header 'Content-Type: application/json' \
--data '{
"login": "LOGIN",
"pass": "PASSWORD",
"domain": "DOMAIN",
"type": "Type",
"name": "NAME",
"data": "",
"ttl": "ttl"
}'
wget --quiet \
--method POST \
--header 'Content-Type: application/json' \
--body-data '{\n "login": "LOGIN",\n "pass": "PASWORD",\n "domain": "DOMAIN",\n "type": "TYPE",\n "name": "NAME",\n "data": "",\n "ttl": "TTL"\n}' \
--output-document \
- http://localhost:3000/api/add
Types:
- A
- CNAME
- ALIAS
- MX
- NS
- TXT
Name:
- IP or -HOST or TEXT
TTL:
- 300
- 900
- 1800
- 3600
- 7200
- 14400
- 28800
- 43200
- 86400
- 172800
MIT
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Hurricane Electric. This is an independent and unofficial software. Use at your own risk.