Skip to content

Commit

Permalink
Merge pull request #38 from kubeshop/mm/fix/poststaticroute
Browse files Browse the repository at this point in the history
fix:  static route post openapi definition
  • Loading branch information
mortada-codes authored May 10, 2022
2 parents f6c04e2 + 3c71804 commit 805d8fb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,32 @@ paths:
type: array
items:
$ref: "#/components/schemas/StaticRouteItem"
post:
tags:
- "create new static route"
summary: "create new static route"
operationId: createStaticRoute
requestBody:
description: "static route content"
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/StaticRouteItem"
responses:
200:
description: "created static route"
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/StaticRouteItem"
400:
description: "The content of the API is malformed"
content:
application/json:
schema:
type: string
/staticroutes/{namespace}/{name}:
get:
tags:
Expand Down

0 comments on commit 805d8fb

Please sign in to comment.