|
|
@ -1,12 +1,12 @@ |
|
|
|
# net-api |
|
|
|
# web-api |
|
|
|
|
|
|
|
|
|
|
|
Network API with native Yggdrasil/IPv6 support |
|
|
|
Network API with native Yggdrasil/IPv6 support |
|
|
|
|
|
|
|
|
|
|
|
## Install |
|
|
|
## Install |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
git clone https://github.com/YGGverse/net-api.git |
|
|
|
git clone https://github.com/YGGverse/web-api.git |
|
|
|
cd net-api |
|
|
|
cd web-api |
|
|
|
composer install |
|
|
|
composer install |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ Check socket (also useful for open ports detection) |
|
|
|
##### Request |
|
|
|
##### Request |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
GET socket.php?port=80&host=yo.index |
|
|
|
GET /net/socket.php?port=80&host=yo.index |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
##### Response |
|
|
@ -68,13 +68,13 @@ Show host records |
|
|
|
###### Single record |
|
|
|
###### Single record |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
GET dig.php?name=yo.index&record=A |
|
|
|
GET /net/dig.php?name=yo.index&record=A |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
###### Multiple records |
|
|
|
###### Multiple records |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
GET dig.php?name=yo.index&records[]=A&records[]=AAAA |
|
|
|
GET /net/dig.php?name=yo.index&records[]=A&records[]=AAAA |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
##### Response |
|
|
|
##### Response |
|
|
@ -91,16 +91,16 @@ JSON |
|
|
|
|
|
|
|
|
|
|
|
### Yggdrasil |
|
|
|
### Yggdrasil |
|
|
|
|
|
|
|
|
|
|
|
* `http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/net/` |
|
|
|
* `http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/` |
|
|
|
|
|
|
|
|
|
|
|
### Alfis |
|
|
|
### Alfis |
|
|
|
|
|
|
|
|
|
|
|
* `http://api.ygg/net/` |
|
|
|
* `http://api.ygg` |
|
|
|
|
|
|
|
|
|
|
|
### Hybrid |
|
|
|
### Hybrid |
|
|
|
|
|
|
|
|
|
|
|
* `http://api.ygg.at/net/` |
|
|
|
* `http://api.ygg.at` |
|
|
|
|
|
|
|
|
|
|
|
### Clearnet |
|
|
|
### Clearnet |
|
|
|
|
|
|
|
|
|
|
|
* `https://yggapi.duckdns.org/net/` |
|
|
|
* `https://yggapi.duckdns.org` |