Setup functional spec for api endpoints