def editors(provider, userid, path="/"): flt = request.GET.get("format") return PCAPIRest(request, response).editors(provider, userid, path, flt)
def surveys(provider, userid, survey=None): return PCAPIRest(request, response).surveys(provider, userid, survey)
def assets(provider, userid, path="/"): flt = request.GET.get("frmt") return PCAPIRest(request, response).assets(provider, userid, path, flt)
def records(provider, userid, path="/"): flt = request.GET.get("filter") ogc_sync = True if request.GET.get("ogc_sync") else False return PCAPIRest(request, response).records(provider, userid, path, flt, ogc_sync)
def sync(userid, provider, cursor=None): return PCAPIRest(request, response).sync(provider, userid, cursor)
def backup(provider, userid, folder): return PCAPIRest(request, response).backup(provider, userid, folder)
def export(userid, provider, path="/"): return PCAPIRest(request, response).export(provider, userid, path)
def capabilities(): return PCAPIRest(request, response).capabilities()
def login(provider, userid=None): return PCAPIRest(request, response).login(provider, userid)
def fs(provider, userid, path="/"): """ Upload file to path (as documented in the API docs) """ return PCAPIRest(request, response).fs(provider, userid, path)
def layers(provider, userid, path="/"): return PCAPIRest(request, response).features(provider, userid, path)