consume an API within an existing Quasar SPA
This task is aimed at developers with Quasar experience.
An existing quasar app should send an url to an existing service, which returns a result. The result should be displayed to the user. Either by updating the dialog or by a dialog in dialog
-
if no email was found Email was found, we tell the user: "sorry, no email was found."
-
if one email was found, We tell the user: "Send an Email with instructions to ... now". A second Request is send to /register
-
if more than one Email was found we provide selection box, where a user can choose the Email. A second Request to /register
Currently the form is located in our Landingpage. We would like to move the Code into a Component.
form
Source Code: https://gitlab.com/yawik/ApplicationFormFrontend/-/blob/master/src/pages/LandingPage.vue#L38-58
first request
{
success: true,
message: "1 emails extracted.",
emails: [
"bewerbung@cross-solution.de"
]
}
second request
https