Skip to content

Commit

Permalink
BUG/MAJOR: spec: change mimetypes for raw and general_storage endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Sep 19, 2024
1 parent 2bc7574 commit a42db46
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 31 deletions.
25 changes: 10 additions & 15 deletions specification/build/haproxy_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21759,7 +21759,7 @@ paths:
- $ref: '#/parameters/transaction_id'
- $ref: '#/parameters/version'
produces:
- application/json
- text/plain
responses:
"200":
description: Operation successful
Expand All @@ -21774,12 +21774,7 @@ paths:
description: Configuration file version
type: string
schema:
properties:
data:
type: string
required:
- data
type: object
type: string
default:
$ref: '#/responses/DefaultError'
summary: Return HAProxy configuration
Expand Down Expand Up @@ -21822,7 +21817,7 @@ paths:
- $ref: '#/parameters/version'
- $ref: '#/parameters/force_reload'
produces:
- application/json
- text/plain
responses:
"201":
description: New HAProxy configuration pushed
Expand Down Expand Up @@ -23142,7 +23137,7 @@ paths:
in: formData
name: file_upload
type: file
x-mimetype: text/plain
x-mimetype: application/octet-stream
responses:
"201":
description: General use file created with its contents
Expand Down Expand Up @@ -23202,7 +23197,7 @@ paths:
- Storage
put:
consumes:
- text/plain
- multipart/form-data
description: Replaces the contents of a managed general use file on disk
operationId: replaceStorageGeneralFile
parameters:
Expand All @@ -23211,11 +23206,11 @@ paths:
name: name
required: true
type: string
- in: body
name: data
required: true
schema:
type: string
- description: General use file content
in: formData
name: file_upload
type: file
x-mimetype: application/octet-stream
- $ref: '#/parameters/skip_reload'
- $ref: '#/parameters/force_reload'
produces:
Expand Down
12 changes: 3 additions & 9 deletions specification/paths/configuration/raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ configuration:
- $ref: "#/parameters/transaction_id"
- $ref: "#/parameters/version"
produces:
- application/json
- text/plain
tags:
- Configuration
responses:
Expand All @@ -25,20 +25,15 @@ configuration:
description: Configuration file md5 checksum
type: string
schema:
type: object
required:
- data
properties:
data:
type: string
type: string
'default':
$ref: '#/responses/DefaultError'
post:
summary: Push new haproxy configuration
description: Push a new haproxy configuration file in plain text
operationId: postHAProxyConfiguration
produces:
- application/json
- text/plain
consumes:
- text/plain
parameters:
Expand Down Expand Up @@ -106,7 +101,6 @@ configuration:
type: string
schema:
type: string

'400':
$ref: '#/responses/BadRequest'
'default':
Expand Down
14 changes: 7 additions & 7 deletions specification/paths/storage/general_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ general_files:
name: file_upload
type: file
description: General use file content
x-mimetype: text/plain
x-mimetype: application/octet-stream
tags:
- Storage
responses:
Expand Down Expand Up @@ -90,7 +90,7 @@ general_files_one:
produces:
- application/json
consumes:
- text/plain
- multipart/form-data
tags:
- Storage
parameters:
Expand All @@ -99,11 +99,11 @@ general_files_one:
description: General use file storage_name
required: true
type: string
- name: data
in: body
required: true
schema:
type: string
- in: formData
name: file_upload
type: file
description: General use file content
x-mimetype: application/octet-stream
- $ref: "#/parameters/skip_reload"
- $ref: "#/parameters/force_reload"
responses:
Expand Down

0 comments on commit a42db46

Please sign in to comment.