risotto/tests/fake_services/server/server.py

9 lines
289 B
Python
Raw Normal View History

2019-12-06 07:14:24 +01:00
from risotto.controller import Controller
from risotto.register import register
class Risotto(Controller):
@register('v1.server.list', None)
async def server_list(self):
return [{'server_id': 3, 'servername': 'one', 'serverdescription': 'the first', 'servermodelid': 1}]