Created
October 21, 2015 23:20
-
-
Save muojp/63a43c20227fb2175f90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
paths: { | |
/operators: { | |
post: { | |
parameters: [ | |
{ | |
schema: { | |
- $ref: "#/definitions/RegisterOperatorsRequest" | |
+ $ref: "#/definitions/CreateOperatorRequest" | |
} | |
} | |
] | |
responses: { | |
201: { | |
- description: "Created" | |
+ description: "Operator が作成された" | |
} | |
400: { | |
- description: "This email is already registered" | |
+ description: "メールアドレスがすでに登録されているか、パスワードのフォーマットが不正" | |
} | |
} | |
} | |
} | |
} | |
definitions: { | |
- RegisterOperatorsRequest: { | |
- properties: { | |
- email: { | |
- type: "string" | |
- } | |
- password: { | |
- type: "string" | |
- } | |
- } | |
- } | |
+ CreateOperatorRequest: { | |
+ properties: { | |
+ email: { | |
+ type: "string" | |
+ } | |
+ password: { | |
+ type: "string" | |
+ description: "パスワードは以下の条件を満たしている必要があります:長さ 8 文字以上100 文字以内、アルファベット小文字 (a-z) を 1 文字以上使用、アルファベット大文字 (A-Z) を 1 文字以上使用、数字を 1 文字以上使用。記号なども使用できます。" | |
+ } | |
+ } | |
+ required: [ | |
+ "email" | |
+ "password" | |
+ ] | |
+ } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment