#TRUECALLER
Instructions for running the code
pip install requirements.txt
python manage.py runserver
###Signup
Route: http://localhost:8000/signup/
Type: POST
Data:
{
"username":"Abhijeet",
"email":"[email protected]",
"password":"Iwilldoit",
"phone":"7011282532"
}
###Login
Route: http://localhost:8000/login/
Type: POST
Data:
{
"username":"Abhijeet",
"password":"Iwilldoit"
}
A AUTHTOKEN is provided after signup and login.
Route: http://localhost:8000/admin/
signIn using admin credentials.
Go to Token and copy the genrated token
Then in Request Header put
key: Authentication
value: Token (Token string) without bracket
Route: http://localhost:8000/spam/
Type: POST
Random Data:
{
"phone": "1234567890"
}
Registed Data:{
"phone":"7011282532"
}
Public Route: http://localhost:8000/contact/
Type: GET
Route: http://localhost:8000/searchbyname
Type: GET
Full Data:{
"name":"Abhijeet"
}
Random Data:{
"name":"Abhi"
}
Route: http://localhost:8000/searchbyphone/
Type: GET
Data:{
"phone":"7011282532"
}