starting rest api