mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: add version info
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -476,6 +476,42 @@ definitions:
|
||||
example: ok
|
||||
type: string
|
||||
type: object
|
||||
handlers.VersionResponse:
|
||||
properties:
|
||||
built:
|
||||
example: "2025-11-08T12:34:56Z"
|
||||
type: string
|
||||
builtBy:
|
||||
example: ci
|
||||
type: string
|
||||
commit:
|
||||
example: a1b2c3d
|
||||
type: string
|
||||
commitTime:
|
||||
example: "2025-11-08T12:31:00Z"
|
||||
type: string
|
||||
go:
|
||||
example: go1.23.3
|
||||
type: string
|
||||
goArch:
|
||||
example: amd64
|
||||
type: string
|
||||
goOS:
|
||||
example: linux
|
||||
type: string
|
||||
modified:
|
||||
example: false
|
||||
type: boolean
|
||||
revision:
|
||||
example: a1b2c3d4e5f6abcdef
|
||||
type: string
|
||||
vcs:
|
||||
example: git
|
||||
type: string
|
||||
version:
|
||||
example: 1.4.2
|
||||
type: string
|
||||
type: object
|
||||
handlers.createUserKeyRequest:
|
||||
properties:
|
||||
expires_in_hours:
|
||||
@@ -3587,6 +3623,22 @@ paths:
|
||||
summary: Update node taint (org scoped)
|
||||
tags:
|
||||
- Taints
|
||||
/version:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Returns build/runtime metadata for the running service.
|
||||
operationId: Version // operationId
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.VersionResponse'
|
||||
summary: Service version information
|
||||
tags:
|
||||
- Meta
|
||||
schemes:
|
||||
- http
|
||||
- https
|
||||
|
||||
Reference in New Issue
Block a user