[WIP][TASK] Add restfull api