initial rest api working