Skip to content

Commit

Permalink
REORG/MAJOR: returning flat object in response
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <[email protected]>
  • Loading branch information
prometherion committed Feb 5, 2024
1 parent 9a0d8d5 commit 5bd342e
Show file tree
Hide file tree
Showing 39 changed files with 215 additions and 1,287 deletions.
754 changes: 109 additions & 645 deletions specification/build/haproxy_spec.yaml

Large diffs are not rendered by default.

16 changes: 2 additions & 14 deletions specification/paths/configuration/acl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ acls:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/acls"
_version:
type: integer
$ref: "#/definitions/acls"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -119,12 +112,7 @@ acls_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/acl"
_version:
type: integer
$ref: "#/definitions/acl"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ backends:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/backends"
_version:
type: integer
$ref: "#/definitions/backends"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -82,12 +75,7 @@ backends_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/backend"
_version:
type: integer
$ref: "#/definitions/backend"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/bind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ binds:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/binds"
_version:
type: integer
$ref: "#/definitions/binds"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -121,12 +114,7 @@ binds_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/bind"
_version:
type: integer
$ref: "#/definitions/bind"
'404':
$ref: '#/responses/AlreadyExists'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ caches:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/caches"
_version:
type: integer
$ref: "#/definitions/caches"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -82,12 +75,7 @@ caches_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/cache"
_version:
type: integer
$ref: "#/definitions/cache"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/capture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ captures:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/captures"
_version:
type: integer
$ref: "#/definitions/captures"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -97,12 +90,7 @@ captures_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/capture"
_version:
type: integer
$ref: "#/definitions/capture"
'404':
$ref: '#/responses/AlreadyExists'
'default':
Expand Down
7 changes: 1 addition & 6 deletions specification/paths/configuration/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ defaults:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/defaults"
_version:
type: integer
$ref: "#/definitions/defaults"
'default':
$ref: '#/responses/DefaultError'
put:
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/dgram_bind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ dgram_binds:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/dgram_binds"
_version:
type: integer
$ref: "#/definitions/dgram_binds"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -97,12 +90,7 @@ dgram_binds_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/dgram_bind"
_version:
type: integer
$ref: "#/definitions/dgram_bind"
'404':
$ref: '#/responses/AlreadyExists'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/fcgi-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ apps:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/fcgiApps"
_version:
type: integer
$ref: "#/definitions/fcgiApps"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -82,12 +75,7 @@ apps_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/fcgiApp"
_version:
type: integer
$ref: "#/definitions/fcgiApp"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ filters:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/filters"
_version:
type: integer
$ref: "#/definitions/filters"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -115,12 +108,7 @@ filters_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/filter"
_version:
type: integer
$ref: "#/definitions/filter"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ frontends:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/frontends"
_version:
type: integer
$ref: "#/definitions/frontends"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -82,12 +75,7 @@ frontends_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/frontend"
_version:
type: integer
$ref: "#/definitions/frontend"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
7 changes: 1 addition & 6 deletions specification/paths/configuration/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ global:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/global"
_version:
type: integer
$ref: "#/definitions/global"
'default':
$ref: '#/responses/DefaultError'
put:
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/http/after_response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ http_after_response_rules:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/http_after_response_rules"
_version:
type: integer
$ref: "#/definitions/http_after_response_rules"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -115,12 +108,7 @@ http_after_response_rules_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/http_after_response_rule"
_version:
type: integer
$ref: "#/definitions/http_after_response_rule"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/http/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ http_checks:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/http_checks"
_version:
type: integer
$ref: "#/definitions/http_checks"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -112,12 +105,7 @@ http_checks_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/http_check"
_version:
type: integer
$ref: "#/definitions/http_check"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
16 changes: 2 additions & 14 deletions specification/paths/configuration/http/error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ http_error_rules:
description: Configuration file version
type: string
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/http_error_rules"
_version:
type: integer
$ref: "#/definitions/http_error_rules"
'default':
$ref: '#/responses/DefaultError'
post:
Expand Down Expand Up @@ -112,12 +105,7 @@ http_error_rules_one:
description: Configuration file version
type: string
schema:
type: object
properties:
data:
$ref: "#/definitions/http_error_rule"
_version:
type: integer
$ref: "#/definitions/http_error_rule"
'404':
$ref: '#/responses/NotFound'
'default':
Expand Down
Loading

0 comments on commit 5bd342e

Please sign in to comment.