risotto/tests/fake_services/server/server.py

9 lines
299 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):
2019-12-26 15:33:51 +01:00
return [{'server_id': 3, 'server_name': 'one', 'server_description': 'the first', 'server_servermodel_id': 1}]