Added first api with tests