Skip to content

eliohr/emailnobody.com

Repository files navigation

email nobody

Using React + Vite for a minimal windows-os-esque frontend.

"Sending" an email sends a POST request as described in the API doc and resets the fields. "Receiving" an email sends a GET request as described in the API doc for an email with a random id and displays the info received.

api documentation

POST /emails

body:

{

"name": the faux username ("@emailnobody.com") the user inputs to the name text field; String,
"subject": the subject the user inputs to the subject text field; String,
"body": the body the user inputs to the body text field; String

}

returns: emailid (the id of the email posted; int)

GET /emails/{emailid}

returns:

{

"emailid": the id of the email; int,
"sent": the moment the email was sent; datetime,
"name": the faux username ("@emailnobody.com") the user inputs to the name text field; String,
"subject": the subject the user inputs to the subject text field; String,
"body": the body the user inputs to the body text field; String

}

GET /emails/count

returns: count (the number of emails in the database; int)

About

Vite + React frontend for novelty app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published