Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from afes-website/bugfix/#16_missing_path_para…
Browse files Browse the repository at this point in the history
…meter

#16: add missing path parameters
  • Loading branch information
ibuki2003 committed Feb 22, 2020
2 parents 5e53184 + 1826bc1 commit 099a9df
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions swagger.yaml
Expand Up @@ -188,12 +188,7 @@ paths:
$ref: "#/components/schemas/Error"
/blog/articles/{id}:
parameters:
- in: path
name: id
required: true
schema:
type: string
description: id of an article
- $ref: "#/components/parameters/blogArticleId"
get:
summary: get info of the article
tags:
Expand Down Expand Up @@ -325,13 +320,7 @@ paths:
$ref: "#/components/schemas/Error"
/blog/revisions/{id}:
parameters:
- in: path
name: id
required: true
schema:
type: integer
format: int32
description: id of an revision
- $ref: "#/components/parameters/blogRevisionId"
get:
summary: get the revision
description: "note: writer can see only owned revision"
Expand Down Expand Up @@ -362,6 +351,8 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/blog/revisions/{id}/accept:
parameters:
- $ref: "#/components/parameters/blogRevisionId"
patch:
summary: accept the revision
security:
Expand All @@ -382,6 +373,8 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/blog/revisions/{id}/reject:
parameters:
- $ref: "#/components/parameters/blogRevisionId"
patch:
summary: reject the revision
security:
Expand Down Expand Up @@ -468,6 +461,21 @@ components:
- timestamp
- status
parameters:
blogArticleId:
in: path
name: id
required: true
schema:
type: string
description: id of an article
blogRevisionId:
in: path
name: id
required: true
schema:
type: integer
format: int32
description: id of an revision
securitySchemes:
admin:
type: apiKey
Expand Down

0 comments on commit 099a9df

Please sign in to comment.