Skip to content

Assignment API Documentaion

Snehal_Patare edited this page Mar 4, 2022 · 6 revisions

API Output Standard

  • Success:
{
    "status" : "success",
    "session_id"  : "", etc
}
  • Failure:
{
    "status" : "error",
    "message"  : "" 
}

DBAccess API

DBAccess API - UPDATED

* Inputs needed: {
    "session_id" : "Snehal",
    "status" : 1,
    "modified_by" : 123,
    "modified_at" : " 2022-02-06 18:31:36"
}
Output : 
{
    "status" : "Success",
    "message"  : "User Created" 
}
  • Error message
{
    "status" : "Error",
    "message"  : "User already exist" 
}
{
    "session_id" : "Snehal",
    "place_name" : "MN",
    "data_link" : "C:temp",
	"searched_time" : "Hello",
    "location_searched_at" : " 2022-02-06 18:31:36"
}
{
    "status" : "Success",
    "message"  : "User History added" 
}
  • Error message if the location doesn't exist in list
{
    "status" : "Error",
    "message"  : "Location not exist" 
}
  • Error message : No user
{
    "status" : "Error",
    "message"  : "User not found" 
}
    "session_id" : "Snehal"
}

Output : {
	"place_name": "KIND",
	"data_link" "abcd",
	"searched_time": "12/13/2021",
	"location_searched_at": "09/12/2012" 
	}

Login API's

https://www.getpostman.com/collections/88b4fd5c61104463f5a3

Auth Server API's

https://www.getpostman.com/collections/e36f64b1787ffda3260d