cbmi/cbapi_ldap/views.py

23 lines
392 B
Python
Raw Permalink Normal View History

2022-05-25 23:38:10 +02:00
# from jsonrpc import jsonrpc_method
2013-10-20 20:42:13 +02:00
TODO = [
'',
]
2022-05-25 23:38:10 +02:00
# @jsonrpc_method("ping", authenticated=True)
2013-10-20 20:42:13 +02:00
def ping(request, username, password):
"""Ping - Echo Request
:returns str: echo_response
"""
echo_response = "PONG"
return echo_response
2022-05-25 23:38:10 +02:00
# @jsonrpc_method("todo")
2013-10-20 20:42:13 +02:00
def todo(request):
"""Todo - List ToDo Items
:returns list: todolist
"""
return TODO