mrxiaozhuox/dorea

web-service api support

mrxiaozhuox opened this issue · 1 comments

I think TCP + Protocol is not convenient for other language to connect, so I will create a web service for Dorea.

The struct of API is look like this:

https://domain.com:3451/@{group_name}/{operation}/

Response:

{
    "alpha": "{status}",
    "data": {},
    "message": "{error_message}",
    "resptime": "{timestamp}"
}

the api validation will use JWT.

https://domain.com:3451/@{group_name}/execute can execute any command.