README code examples should use consistent json returns

This commit is contained in:
fosslinux 2020-01-27 07:22:08 +11:00
parent 5cac2bb6b1
commit 15c58cc8bc
No known key found for this signature in database
GPG Key ID: 7D7996D0C25B63A3
1 changed files with 11 additions and 11 deletions

View File

@ -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
} }
``` ```