Skip to content

Commit 1219c81

Browse files
committed
FEATURE/MEDIUM: config: add configuration version endpoint
1 parent cb73616 commit 1219c81

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

build/haproxy_spec.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10221,4 +10221,22 @@ paths:
1022110221
summary: Replace the value corresponding to each id in a map
1022210222
tags:
1022310223
- Maps
10224+
/services/haproxy/configuration/version:
10225+
get:
10226+
description: Returns configuration version.
10227+
operationId: getConfigurationVersion
10228+
parameters:
10229+
- $ref: '#/parameters/transaction_id'
10230+
responses:
10231+
"200":
10232+
description: Configuration version
10233+
schema:
10234+
type: integer
10235+
"404":
10236+
$ref: '#/responses/NotFound'
10237+
default:
10238+
$ref: '#/responses/DefaultError'
10239+
summary: Return a configuration version
10240+
tags:
10241+
- Configuration
1022410242

haproxy-spec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,3 +560,5 @@ paths:
560560
$ref: "paths/runtime.yaml#/maps_entries"
561561
/services/haproxy/runtime/maps_entries/{id}:
562562
$ref: "paths/runtime.yaml#/maps_entries_one"
563+
/services/haproxy/configuration/version:
564+
$ref: "paths/configuration.yaml#/version"

paths/configuration.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,3 +3605,21 @@ acls_one:
36053605
$ref: '#/responses/NotFound'
36063606
'default':
36073607
$ref: '#/responses/DefaultError'
3608+
version:
3609+
get:
3610+
summary: Return a configuration version
3611+
description: Returns configuration version.
3612+
operationId: getConfigurationVersion
3613+
tags:
3614+
- Configuration
3615+
parameters:
3616+
- $ref: "#/parameters/transaction_id"
3617+
responses:
3618+
'200':
3619+
description: Configuration version
3620+
schema:
3621+
type: integer
3622+
'404':
3623+
$ref: '#/responses/NotFound'
3624+
'default':
3625+
$ref: '#/responses/DefaultError'

0 commit comments

Comments
 (0)