First version of the Api. Some tests missing