I'm trying to get timing information for all my API endpoints based on the OpenAPI JSON, so I would like to do something like this in the setup
method:
for api_path in self.client.get('/api/doc/?format=openapi').json()['paths'].keys():
self.get_[api_path] = [@task decorated method which retrieves the API path]
Or is there another way to generate tasks at runtime?