starting to implement api endpoints

Signed-off-by: Chris Jones <chris@jonezy.org>