Define backend Rest API and implementation

Signed-off-by: Connor Yan <126ium@gmail.com>