Copied the api-template second part