Add initial rest API... not working yet though. :(