Skip to content

Commit

Permalink
feat(api): added api_version in UnitInfo (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile authored Sep 9, 2024
1 parent 617ccd1 commit a76b1ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ CGO_ENABLED=0 go build
"system_id": "XXXXXXXX-XXXX",
"ssh_port": 22,
"fqdn": "fw.local",
"api_version": "1.0.0"
}
},
...
Expand All @@ -153,6 +154,7 @@ CGO_ENABLED=0 go build
"system_id": "",
"ssh_port": 0,
"fqdn": "",
"api_version": "1.0.0"
}
}
],
Expand Down Expand Up @@ -197,6 +199,7 @@ CGO_ENABLED=0 go build
"system_id": "XXXXXXXX-XXXX",
"ssh_port": 22,
"fqdn": "fw.local",
"api_version": "1.0.0"
},
"join_code": "eyJmcWRuIjoiY29udHJvbGxlci5ncy5uZXRoc2VydmVyLm5ldCIsInRva2VuIjoiMTIzNCIsInVuaXRfaWQiOiI5Njk0Y2Y4ZC03ZmE5LTRmN2EtYjFjNC1iY2Y0MGUzMjhjMDIifQ=="
},
Expand Down Expand Up @@ -229,6 +232,7 @@ CGO_ENABLED=0 go build
"system_id": "XXXXXXXX-XXXX",
"unit_name": "NethSec",
"version": "NethSecurity 8 23.05.3-ns.1.0.1"
"api_version": "1.0.0"
},
"message": "unit info retrieved successfully"
}
Expand Down
1 change: 1 addition & 0 deletions api/models/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ type UnitInfo struct {
SystemID string `json:"system_id"`
SSHPort int `json:"ssh_port"`
FQDN string `json:"fqdn"`
APIVersion string `json:"api_version"`
}

0 comments on commit a76b1ec

Please sign in to comment.