mirror of
https://github.com/ThunixdotNet/thunix_api.git
synced 2026-01-24 05:10:17 +00:00
README code examples should use consistent json returns
This commit is contained in:
22
README.md
22
README.md
@@ -38,17 +38,17 @@ This endpoint shall return a json struct containing interfaces, and IP addresses
|
|||||||
```
|
```
|
||||||
{
|
{
|
||||||
"Interfaces":[
|
"Interfaces":[
|
||||||
{
|
{
|
||||||
"Name":"eth0",
|
"Name":"eth0",
|
||||||
"Addresses":[
|
"Addresses":[
|
||||||
"10.0.0.1/32",
|
"10.0.0.1/32",
|
||||||
"10.0.1.100/24"
|
"10.0.1.100/24"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name":"wg0",
|
"Name":"wg0",
|
||||||
"Addresses":[
|
"Addresses":[
|
||||||
"192.168.0.1/24"
|
"192.168.0.1/24"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -74,8 +74,8 @@ This shall return a struct, describing the current tea making capabilities of th
|
|||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"tea" : "available",
|
"tea":"available",
|
||||||
"height" : "short",
|
"height":"short",
|
||||||
"width" : "stout
|
"width":"stout
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user