Skip to content

Commit

Permalink
feat:WEOS-1178
Browse files Browse the repository at this point in the history
- Added delete case to /blogs
  • Loading branch information
RandyDeo committed Jan 27, 2022
1 parent 60717f6 commit 1267ae3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,32 @@ paths:
type: array
items:
$ref: "#/components/schemas/Blog"
delete:
operationId: Delete Blog
parameters:
- in: query
name: id
schema:
type: string
required: true
description: blog id
requestBody:
description: Blog info that is submitted
required: false
content:
application/json:
schema:
$ref: "#/components/schemas/Blog"
responses:
200:
description: Update blog
content:
application/json:
schema:
$ref: "#/components/schemas/Blog"
400:
description: Invalid blog submitted

/blogs/{id}:
get:
parameters:
Expand Down Expand Up @@ -280,6 +306,13 @@ paths:
type: string
required: true
description: blog id
requestBody:
description: Blog info that is submitted
required: false
content:
application/json:
schema:
$ref: "#/components/schemas/Blog"
summary: Delete blog
operationId: Delete Blog
responses:
Expand Down

0 comments on commit 1267ae3

Please sign in to comment.