Adding basic REST API.