diff --git a/components/parameters/OptionParam.yml b/components/parameters/OptionParam.yml deleted file mode 100644 index b359e6c3..00000000 --- a/components/parameters/OptionParam.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: options -in: query -required: false -description: "The option field is a key-value object, where the key is the option, and the value is a boolean. For example, `?option[force]=true`" -schema: - type: object - additionalProperties: - type: string -style: deepObject diff --git a/platform/paths/hubs/hub.yml b/platform/paths/hubs/hub.yml index c48dee76..41f8e729 100644 --- a/platform/paths/hubs/hub.yml +++ b/platform/paths/hubs/hub.yml @@ -77,7 +77,19 @@ delete: - Hubs security: - bearerAuth: [] - parameters: [] + parameters: + - name: options + in: query + required: false + schema: + type: object + properties: + force: + type: string + description: If force is set to true, this will force delete the hub, even if there are servers running on it. + enum: + - "true" + - "false" summary: Delete Hub description: Requires the `hubs-delete` capability. This can only be aquired by being the hub owner. responses: diff --git a/platform/paths/infrastructure/servers/server.yml b/platform/paths/infrastructure/servers/server.yml index a82fda63..c695ce00 100644 --- a/platform/paths/infrastructure/servers/server.yml +++ b/platform/paths/infrastructure/servers/server.yml @@ -143,7 +143,18 @@ delete: required: true schema: type: string - - $ref: ../../../../components/parameters/OptionParam.yml + - name: options + in: query + required: false + schema: + type: object + properties: + force: + type: string + description: If force is set to true, this will force delete the server, even if there are environments running on it. + enum: + - "true" + - "false" responses: 200: description: Returns a Job Descriptor.