Skip to content

Spring Boot server hosting database for emailnobody.com

Notifications You must be signed in to change notification settings

eliohr/emailnobody.com-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

email nobody

Using Spring Boot for a simple relational database backend. Works with a Vite + React 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

Spring Boot server hosting database for emailnobody.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages