diff --git a/index.html b/index.html index f9ac606..97e7a21 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java b/src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java index 180cf7c..4b1b574 100644 --- a/src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java +++ b/src/main/java/org/waterproofingdata/wpdauth/controller/ForgotPasswordsController.java @@ -91,7 +91,7 @@ public class ForgotPasswordsController { @ApiResponse(code = 422, message = "Invalid answers supplied to login. Must have at least 2 correct ones.")}) public String loginbyemailandanswers(// @ApiParam("Email") @RequestParam String email, // - @ApiParam("Answers") @RequestParam List answers) { + @ApiParam("Answers") @RequestBody List answers) { return forgotPasswordsService.loginByEmailAndAnswers(email, CustomMapper.mapAll(answers, ForgotPasswordsQuestionsUsersAnswers.class)); } } diff --git a/swagger.yaml b/swagger.yaml index a719feb..a48e722 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -48,12 +48,14 @@ paths: produces: - '*/*' parameters: - - name: answers - in: query + - in: body + name: answers description: Answers required: false - type: string - allowEmptyValue: false + schema: + type: array + items: + $ref: '#/definitions/ForgotPasswordsQuestionsUsersAnswersRequestDTO' - name: email in: query description: Email