Project

General

Profile

Actions

Api-functions » History » Revision 1

Revision 1/2 | Next »
Никита Давыдовский, 03/18/2013 09:57 PM


Функции API

registerUser

Request

{    
    "email": {"type":"string"},
    "login": {"type":"string"},
    "password":{"type":"string"}
}

Response

{    
    "user_id": {"type":"string"}
}

authorization

Request

{    
    "login": {"type":"string"},
    "password":{"type":"string"}
}

Response

{    
    "token": {"type":"string"}
}

getPoints

Request

{    
    "latitude": {"type":"number"},
    "longitude":{"type":"number"},
    "radius":{"type":"number"},
    "token":{"type":"string"}
}

Response

{    
    "points": {"type":"array"}
}

getRoutes

Request

{    
    "points": {"type":"array"},
    "token":{"type":"string"}
}

Response

{    
    "routes": {"type":"array"}
}

addPoint

Request

{   
    "title": {"type":"string"},
    "url": {"type":"string"},
    "latitude": {"type":"number"},
    "longitude":{"type":"number"},
    "token":{"type":"string"}
}

Response

{    
    "point_id": {"type":"number"}
}

addRoute

Request

{  
    "title": {"type":"string"},
    "url": {"type":"string"},   
    "points": {"type":"array"},
    "token":{"type":"string"}
}

Response

{    
    "route_id": {"type":"number"}
}

search

Request

{  
    "title": {"type":"string"},
    "token":{"type":"string"}
}

Response

{    
    "points": {"type":"array"},
    "routes": {"type":"array"}
}

logout

Request

{  
    "user_id": {"type":"number"},
    "token":{"type":"string"}  
}

Response

{    
}

Updated by Никита Давыдовский over 11 years ago · 1 revisions