Generate API package based on the OpenAPI definition