Skip to content

Commit

Permalink
Merge pull request #152 from freee/feature/update_schema_files_2022-0…
Browse files Browse the repository at this point in the history
…3-29-02-04

Update schema files
  • Loading branch information
sereru authored Mar 29, 2022
2 parents b8f53cb + b626deb commit d8e883a
Showing 1 changed file with 268 additions and 2 deletions.
270 changes: 268 additions & 2 deletions hr/open-api-3/api-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3756,6 +3756,273 @@
}
}
}
},
"post": {
"tags": [
"役職"
],
"summary": "役職情報の作成\n",
"description": "\n指定した事業所の役職を新規作成します。\n- 管理者権限を持ったユーザのみ実行可能です。",
"operationId": "create_position",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiV1PositionRequest"
}
}
}
},
"responses": {
"201": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiV1PositionResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/accessDeniedError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
}
},
"/api/v1/positions/{id}": {
"put": {
"tags": [
"役職"
],
"summary": "役職情報の更新\n",
"description": "\n指定した事業所の役職の情報を更新します。\n- 管理者権限を持ったユーザのみ実行可能です。",
"operationId": "update_position",
"parameters": [
{
"name": "id",
"in": "path",
"description": "役職ID",
"required": true,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiV1PositionRequest"
}
}
}
},
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiV1PositionResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/accessDeniedError"
}
}
}
},
"404": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/notfoundError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
},
"delete": {
"tags": [
"役職"
],
"summary": "役職情報の削除\n",
"description": "\n指定した事業所の役職の情報を削除します。\n- 管理者権限を持ったユーザのみ実行可能です。\n- 従業員に役職が適用されている場合、従業員の役職情報も削除されます。",
"operationId": "destroy_position",
"parameters": [
{
"name": "id",
"in": "path",
"description": "役職ID",
"required": true,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"example": 1
},
{
"name": "company_id",
"in": "query",
"description": "事業所ID",
"required": true,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"example": 1
}
],
"responses": {
"204": {
"description": "successful operation"
},
"400": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/unauthorizedError"
}
}
}
},
"403": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/forbiddenError"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/accessDeniedError"
}
}
}
},
"404": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/notfoundError"
}
}
}
},
"500": {
"description": "",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/internalServerError"
}
}
}
}
}
}
}
},
Expand Down Expand Up @@ -4367,8 +4634,7 @@
"ApiV1GroupCreateRequestParams": {
"type": "object",
"required": [
"name",
"group"
"name"
],
"properties": {
"code": {
Expand Down

0 comments on commit d8e883a

Please sign in to comment.