Skip to content

Commit

Permalink
Merge pull request #47 from kubeshop/mm/fix/deleteapi
Browse files Browse the repository at this point in the history
fix: delete api endpoint definition
  • Loading branch information
mortada-codes authored May 24, 2022
2 parents 4b72894 + 8c93334 commit dd877d3
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,28 @@ paths:
$ref: "#/components/schemas/ApiItem"
404:
description: "API item not found"
delete:
tags:
- "apis"
summary: "Delete an API instance by namespace and name"
operationId: deleteApi
parameters:
- name: namespace
in: path
required: true
schema:
type: string
default: "default"
- name: name
in: path
required: true
schema:
type: string
responses:
204:
description: "api item deleted"
404:
description: "api item not found"
/apis/{namespace}/{name}/crd:
get:
tags:
Expand Down Expand Up @@ -270,6 +292,28 @@ paths:
$ref: "#/components/schemas/EnvoyFleetItem"
404:
description: "Envoy fleet not found by namespace-name combination"
delete:
tags:
- "fleets"
summary: "Delete a Fleet instance by namespace and name"
operationId: deleteFleet
parameters:
- name: namespace
in: path
required: true
schema:
type: string
default: "default"
- name: name
in: path
required: true
schema:
type: string
responses:
204:
description: "fleet item deleted"
404:
description: "fleet item not found"
/fleets/{namespace}/{name}/crd:
get:
tags:
Expand Down Expand Up @@ -387,6 +431,28 @@ paths:
$ref: "#/components/schemas/StaticRouteItem"
404:
description: "Static Route not found by namespace-name combination"
delete:
tags:
- "static Route"
summary: "Delete a StaticRoute by namespace and name"
operationId: deleteStaticRoute
parameters:
- name: namespace
in: path
required: true
schema:
type: string
default: "default"
- name: name
in: path
required: true
schema:
type: string
responses:
204:
description: "staticRoute item deleted"
404:
description: "staticRoute item not found"
/staticroutes/{namespace}/{name}/crd:
get:
tags:
Expand Down Expand Up @@ -562,4 +628,3 @@ components:
properties:
name:
type: string

0 comments on commit dd877d3

Please sign in to comment.