add the sphinx code for the api