add GET /api/v1 to get API description

This commit is contained in:
2019-11-29 09:13:16 +01:00
parent 51df2a1ba7
commit e74391b77a
4 changed files with 49 additions and 14 deletions

View File

@ -278,6 +278,8 @@ class Dispatcher(RegisterDispatcher):
print_exc()
log.error_msg(version, uri, new_context, kwargs, 'call', err)
raise CallError(str(err))
# FIXME notification
# FIXME valider le retour!
log.info_msg(version, uri, new_context, kwargs, 'call', _(f'returns {returns}'))
return returns