Skip to content
/ ca_portal Public

Source code for Campus Ambassador portal of Technex'17

Notifications You must be signed in to change notification settings

pyaf/ca_portal

Repository files navigation

TECHNEX

Api Documentation

Registration Api



Url: http://technex-ca.herokuapp.com/api/register
Method: POST
Json object Expected : //(all fields required)
{
"email" : emailOfUser,
"first_name" : firstName,
"last_name" : lastName,
"password" : password,
"college" : collegeName,
"year" : year(1,2,3,4,5)
"mobile_number" : mobileNumber
}

Json Response for Successful registration:
{
"status" : "Profile created successfully"
}

Json Response for Error in Registration(validation Erorr):
{
"status" : "Registration in error",
"field_name": errorInField //field_name is same as above expected
}

Json Response for Invalid Request(requests other than post):
{
"Error" : True,
"status" : "invalid request,Post request Please!"
}


Login Api



Url: http://technex-ca.herokuapp.com/api/login
Method: POST
Json object Expected:
{
"email" : email,
"password" : password
}

Json Response for successful Login:
{
"status" : "logged in"
}

Json Response for wrong Username/password:
{
"Error" : True,
"status" : "Invalid Credentials!"
}

Json Response for invalid form submission(empty username/password and other validation errors):
{
"Error" : True,
"status" : "Please Fill the form correctly!"
}


About

Source code for Campus Ambassador portal of Technex'17

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published