Skip to content

Commit

Permalink
style: フォーマット
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 11, 2023
1 parent bde4667 commit e427bd6
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 192 deletions.
14 changes: 7 additions & 7 deletions schema/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
url: https://github.com/GiganticMinecraft/seichi-api-schema/blob/main/LICENSE

servers:
- url: 'http://localhost:9000'
- url: "http://localhost:9000"
description: seichi-portal-backend(開発環境)

components:
Expand All @@ -24,14 +24,14 @@ security:

paths:
/forms:
$ref: './paths/forms/index.yml'
$ref: "./paths/forms/index.yml"
/forms/{formId}:
$ref: './paths/forms/specifyForm/index.yml'
$ref: "./paths/forms/specifyForm/index.yml"
/forms/answers:
$ref: './paths/forms/answers/index.yml'
$ref: "./paths/forms/answers/index.yml"
/forms/answers/comment:
$ref: './paths/forms/answers/comment/index.yml'
$ref: "./paths/forms/answers/comment/index.yml"
/forms/{formId}/answers:
$ref: './paths/forms/specifyForm/answers/index.yml'
$ref: "./paths/forms/specifyForm/answers/index.yml"
/forms/labels:
$ref: './paths/forms/labels/index.yml'
$ref: "./paths/forms/labels/index.yml"
60 changes: 30 additions & 30 deletions schema/paths/forms/answers/comment/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ post:
content:
application/json:
schema:
$ref: '../../../../types/forms/definitions.yml#/definitions/comments'
$ref: "../../../../types/forms/definitions.yml#/definitions/comments"
responses:
'200':
"200":
description: コメント成功
'400':
$ref: '../../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError"

delete:
operationId: deleteComment
Expand All @@ -29,18 +29,18 @@ delete:
content:
application/json:
schema:
$ref: '../../../../types/forms/definitions.yml#/definitions/comment_id'
$ref: "../../../../types/forms/definitions.yml#/definitions/comment_id"
responses:
'200':
"200":
description: コメントの削除成功
'400':
$ref: '../../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError"

patch:
operationId: editComment
Expand All @@ -51,15 +51,15 @@ patch:
content:
application/json:
schema:
$ref: '../../../../types/forms/definitions.yml#/definitions/comment_for_edit'
$ref: "../../../../types/forms/definitions.yml#/definitions/comment_for_edit"
responses:
'200':
"200":
description: コメント編集成功
'400':
$ref: '../../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError"
18 changes: 9 additions & 9 deletions schema/paths/forms/answers/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ post:
required: true
content:
application/json:
schema:
$ref: '../../../types/forms/definitions.yml#/definitions/answers'
schema:
$ref: "../../../types/forms/definitions.yml#/definitions/answers"
responses:
'200':
"200":
description: 回答に成功
'401':
$ref: '../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../errors/errorResponses.yml#/components/responses/internalServerError'
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError"
38 changes: 19 additions & 19 deletions schema/paths/forms/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ post:
content:
application/json:
schema:
$ref: '../../types/forms/definitions.yml#/definitions/form'
$ref: "../../types/forms/definitions.yml#/definitions/form"
responses:
'201':
"201":
description: フォームの作成に成功
content:
application/json:
schema:
$ref: '../../types/forms/definitions.yml#/definitions/id'
$ref: "../../types/forms/definitions.yml#/definitions/id"
headers:
Location:
description: 作成されたフォームへのURL
schema:
type: string
'400':
$ref: '../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../errors/errorResponses.yml#/components/responses/unauthorized'
'403':
$ref: '../../errors/errorResponses.yml#/components/responses/forbidden'
'500':
$ref: '../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../errors/errorResponses.yml#/components/responses/forbidden"
"500":
$ref: "../../errors/errorResponses.yml#/components/responses/internalServerError"
get:
operationId: listForms
summary: フォームの一覧を取得する
Expand Down Expand Up @@ -68,7 +68,7 @@ get:
minimum: 1
required: false
responses:
'200':
"200":
description: フォーム一覧の取得に成功
content:
application/json:
Expand All @@ -77,10 +77,10 @@ get:
uniqueItems: true
minItems: 1
items:
$ref: '../../types/forms/definitions.yml#/definitions/form'
'400':
$ref: '../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../errors/errorResponses.yml#/components/responses/unauthorized'
'500':
$ref: '../../errors/errorResponses.yml#/components/responses/internalServerError'
$ref: "../../types/forms/definitions.yml#/definitions/form"
"400":
$ref: "../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../errors/errorResponses.yml#/components/responses/unauthorized"
"500":
$ref: "../../errors/errorResponses.yml#/components/responses/internalServerError"
54 changes: 27 additions & 27 deletions schema/paths/forms/labels/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ get:
summary: 指定した種類のラベルをすべて取得する
description: 指定されたものに対してつけられるラベルをすべて取得する
parameters:
- $ref: '../../../types/forms/parameters.yml#/parameters/form_label_target'
- $ref: "../../../types/forms/parameters.yml#/parameters/form_label_target"
responses:
'200':
"200":
description: すべての指定ラベルの取得成功
content:
application/json:
schema:
$ref: '../../../types/forms/definitions.yml#/definitions/form_labels'
'400':
$ref: '../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../errors/errorResponses.yml#/components/responses/unauthorized'
'500':
$ref: '../../../errors/errorResponses.yml#/components/responses/internalServerError'
$ref: "../../../types/forms/definitions.yml#/definitions/form_labels"
"400":
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"500":
$ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError"

post:
operationId: createFormLabel
Expand All @@ -28,16 +28,16 @@ post:
content:
application/json:
schema:
$ref: '../../../types/forms/definitions.yml#/definitions/form_label'
$ref: "../../../types/forms/definitions.yml#/definitions/form_label"
responses:
'200':
"200":
description: "ラベルの作成に成功"
'400':
$ref: '../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../errors/errorResponses.yml#/components/responses/unauthorized'
'500':
$ref: '../../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"500":
$ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError"

delete:
operationId: deleteFormLabel
Expand All @@ -49,15 +49,15 @@ delete:
content:
application/json:
schema:
$ref: '../../../types/forms/definitions.yml#/definitions/form_label_id'
$ref: "../../../types/forms/definitions.yml#/definitions/form_label_id"
responses:
'200':
"200":
description: "ラベルの削除に成功"
'400':
$ref: '../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../errors/errorResponses.yml#/components/responses/internalServerError'
"400":
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError"
22 changes: 11 additions & 11 deletions schema/paths/forms/specifyForm/answers/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ get:
operationId: getFormAnswers
summary: 指定したフォームのすべての回答を取得する
parameters:
- $ref: '../../../../types/forms/parameters.yml#/parameters/id'
- $ref: "../../../../types/forms/parameters.yml#/parameters/id"
responses:
'200':
"200":
description: 指定されたフォームの回答の取得に成功
content:
application/json:
schema:
$ref: '../../../../types/forms/definitions.yml#/definitions/answers'
'400':
$ref: '../../../../errors/errorResponses.yml#/components/responses/syntaxError'
'401':
$ref: '../../../../errors/errorResponses.yml#/components/responses/unauthorized'
'404':
$ref: '../../../../errors/errorResponses.yml#/components/responses/notFound'
'500':
$ref: '../../../../errors/errorResponses.yml#/components/responses/internalServerError'
$ref: "../../../../types/forms/definitions.yml#/definitions/answers"
"400":
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError"
Loading

0 comments on commit e427bd6

Please sign in to comment.