Project

General

Profile

Actions

Функции API

registerUser

Request

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

Response

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

}

authorization

Request

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

Response

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

getPoints

Request

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

Response

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

getRoutes

Request

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

Response

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

addPoint

Request

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

Response

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

addRoute

Request

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

Response

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

search

Request

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

Response

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

logout

Request

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

Response

{  
    response:{
    }  
}

Updated by Никита Артемов over 11 years ago · 2 revisions