[WIP] Implemented the simple REST endpoints.