Skip to content

Commit

Permalink
Merge pull request #48 from kubeshop/mm/fix/createfleet
Browse files Browse the repository at this point in the history
fix: create fleet post request
  • Loading branch information
mortada-codes authored May 25, 2022
2 parents dd877d3 + b5b1513 commit 98c88d2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,32 @@ paths:
type: array
items:
$ref: "#/components/schemas/EnvoyFleetItem"
post:
tags:
- "create new fleet"
summary: "create new fleet"
operationId: createFleet
requestBody:
description: "create fleet content"
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/ServiceItem"
responses:
200:
description: "created fleet"
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/EnvoyFleetItem"
400:
description: "The content of the API is malformed"
content:
application/json:
schema:
type: string
/fleets/{namespace}/{name}:
get:
tags:
Expand Down Expand Up @@ -523,6 +549,7 @@ components:
- name
- status
- namespace
- serviceType
- ports
properties:
name:
Expand All @@ -534,6 +561,11 @@ components:
- unavailable
namespace:
type: string
serviceType:
type: string
enum:
- ClusterIP
- LoadBalancer
ports:
type: array
items:
Expand Down

0 comments on commit 98c88d2

Please sign in to comment.