Commit f06878f6 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[auth] types for forgot password

parent a8332277
......@@ -107,3 +107,20 @@ instance Arbitrary AuthValid where
]
data PathId = PathNode NodeId | PathNodeNode ListId DocId
---------------------------
type Email = String
data ForgotPasswordRequest = ForgotPasswordRequest { _fpReq_email :: Email }
deriving (Generic )
$(deriveJSON (unPrefix "_fpReq_") ''ForgotPasswordRequest)
instance ToSchema ForgotPasswordRequest where
declareNamedSchema = genericDeclareNamedSchema (unPrefixSwagger "_fpReq_")
data ForgotPasswordResponse = ForgotPasswordRespones { _fpRes_status :: String }
deriving (Generic )
$(deriveJSON (unPrefix "_fpRes_") ''ForgotPasswordResponse)
instance ToSchema ForgotPasswordResponse where
declareNamedSchema = genericDeclareNamedSchema (unPrefixSwagger "_fpRes_")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment