-
Notifications
You must be signed in to change notification settings - Fork 0
/
git
66 lines (47 loc) · 996 Bytes
/
git
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Flask Server
## Getting Started
Clone the repository to your local system
### Setting up an environment
Create a new environment
'''
py -m venv new_env
'''
activate it
'''
new_env\Scripts\activate
'''
### Installing the dependencies
After cloning, install all packages from '''requirement.txt'''
'''
pip install -r requirements.txt
'''
Download Visual C++ from this <a href=http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe>link</a>
Visual Studio is required in order to install python-bsonjs
'''
pipenv install python-bsonjs
'''
## Start Server
'''
flask run
'''
## List of APIs
### Create User
target - /create/user
method - POST
json schema
{
"name":"Sherlock Holmes",
"email":"[email protected]",
"address": {
"line1":"221-B",
"line2":"Baker Street",
"locality":"Baker?",
"City":"London",
"State":"UK",
"pin":"sher"
},
}
### Create Worker
target - /create/worker
method - POST
json schema