@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api EmailVerify
@base https://ev.apis.paypi.dev
@version 1.0.0
@auth Bearer bearer
@endpoints 2
@toc sendCode(1), checkCode(1)

@group sendCode
@endpoint POST /sendCode
@desc Send verification code
@optional {email: str}
@returns(200) {success: bool, message: bool} # Success - Email sent
@errors {400: Invalid or incorrectly formatted email given, 401: Invalid API key}
@example_request {"email":"test@test.com"}

@endgroup

@group checkCode
@endpoint POST /checkCode
@desc Check verification code
@optional {email: str=test@test.com, code: str=123456}
@returns(200) {success: bool, message: str} # If success is true, the user has given the correct code. If not the code is incorrect. \ Check the message for more information
@errors {401: #### Invalid API key, 403: #### Tries for this email exceeded.  To prevent abuse and brute forcing, we limit the number of checkCode requests for each email address to 20. \ This means if more than 20 requests are made you will have to send another code to your user, this will reset the limit.}

@endgroup

@end
