- pip install -r requirements.txt
- gunicorn --bind 0.0.0.0:5000 wsgi:app
- flask run
- TESTING : Atlas
- PRODUCTION : DIGITALOCEAN MONGODB_V5
- TESTING : https://scfchat.herokuapp.com
- PRODUCTION : under construction
POST /config/create_config/
Parameter | Type | Description | Request |
---|---|---|---|
xpath |
list |
Required. list of Xpaths | json |
url |
URL field |
Required. domain URL | json |
label |
URL field |
Required. label for the xpath | json |
GET /config/get_config/
Parameter | Type | Description | Request |
---|---|---|---|
domain_url |
URL field |
Required. domain URL | Query params |
socket.io
event => "messages"
Parameter | Type | Description | Request |
---|---|---|---|
config_id |
string |
Required. Config reference | json |
sender |
email |
Required. User | json |
members |
list |
Required. members of a particular chat | json |
party |
string |
Required. party name the members in the chat | json |
text |
string |
Required. Message to be sent | json |
subject |
string |
Required. Details processed from Xpath | json |
GET /conv/msgs/
Parameter | Type | Description | Request |
---|---|---|---|
members |
list |
Required. members of the chat | Query Params |
config_id |
string |
Required. Config Reference | Query Params |
GET /conv/convo_list/
Parameter | Type | Description | Request |
---|---|---|---|
user |
email |
Required. currently logged in user | Query Params |
config_id |
string |
Required. Config Reference | Query Params |
GET /count/count_msgs/
Parameter | Type | Description | Request |
---|---|---|---|
config_id |
string |
Required. Config Reference | Query Params |
GET /count/update_read/
Parameter | Type | Description | Request |
---|---|---|---|
config_id |
string |
Required. Config Reference | json |
members |
list |
Required. members of the chat | json |
is_read |
boolean |
Required. read status | json |