Skip to content

ramonmedeiros/messaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI codecov Dependabot Status

Messaging - playing with Cloud Run and Bigtable

Made with Python, Flask, BigTable and CloudRun, the service is running on Google Cloud by this address https://messaging-viz3uyzyva-lz.a.run.app.

Features

Send message

It's possible to send a message. You just need a string with a valid email format and a message.

curl -H "Content-Type: application/json" -d '{"recipient": "[email protected]", "message": "a"}' -X POST https://messaging-viz3uyzyva-lz.a.run.app/message

Retrieve messages

Not fetched before

You can retrieve all messages that were never retrieved, by:

curl -X GET https://messaging-viz3uyzyva-lz.a.run.app/message
{"2020-05-11T00:07:53.303464": {"message": {"recipient": "[email protected]", "message": "a"}, "read": false},....

By Index

Specify start and end index

curl -X GET https://messaging-viz3uyzyva-lz.a.run.app/message?start=0&end=0
{"2020-05-11T00:07:53.303464": {"message": {"recipient": "[email protected]", "message": "a"}, "read": false}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published