Skip to content

Turing-Mesh/mesh_microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents
  1. About The Project
  2. Getting Started
  3. ReST Endpoints

About The Project

This repository serves as a microservice built to send a notification email to a student after an instructor leaves feedback for a project.

Built With

Getting Started

  1. Clone this repo
  2. Install dependencies: pip3 install -r requirements.txt
  3. Local development needs an API key https://sendgrid.com/docs/api-reference/
  4. Update your environment with your API key
$echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
$echo "sendgrid.env" >> .gitignore
$source ./sendgrid.env
  1. Start flask server
#local development server
 $python3 run.py
#production server
 $ gunicorn run:app

Prerequisites

  • Python 3.9.5

Endpoints

ReST Endpoints

Put Email

PUT /api/v1/email
  • Sends Email to the recipient with the corresponding subject and content. Required parameters to be sent in body request as JSON.

Required Body:

 {
  "to": "test@example.com",  
  "subject": "Test", 
  "content": "This is a test"
  }
  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages