Skip to content

TobyRoth/Messaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messaging

A messaging server using Flask and Sqlite

How to run the server?

to run this server you have first to excute in the command line py main.py
you will see the URL that server is runing on. it's usually runing on http://localhost:5000/

How to use the server?

the best way to use this server is with postman

The Api's:

The server includes the following Api's:

Add Message:

To add a new message
method-POST , url-'/addMessage'
data required :
json object:
{"application_id": number,"session_id": text,"message_id":unique text, "participants":list of participants,"content": text}

Get Message:

To get a message by a requested attribute
method - POST , url-'/getMessage'

query params one of the following:

application_id : number
session_id :text
message_id :text

Delete Message:

To delete a message by a requested attribute
method - POST , url-'/deleteMessage'

query params one of the following:

application_id : number
session_id :text
message_id :text

About

A messaging server using Flask and Sqlite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages