Revert "Revert "Added python http client codegen and Updated python into language dropdown""

This reverts commit f229c2aa95fc458857129423a8e6cc56a2862f69.
This commit is contained in:
morpheus-30
2023-07-04 23:06:09 +05:30
parent f229c2aa95
commit 3034aa80d5
4 changed files with 118 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import 'package:apidash/codegen/kotlin/pkg_okhttp.dart';
import 'python/pkg_http_client.dart';
import 'package:apidash/consts.dart';
import 'package:apidash/models/models.dart' show RequestModel;
@ -15,6 +16,8 @@ class Codegen {
return DartHttpCodeGen().getCode(requestModel, defaultUriScheme);
case CodegenLanguage.kotlinOkHttp:
return KotlinOkHttpCodeGen().getCode(requestModel);
case CodegenLanguage.pythonHttpClient:
return PythonHttpClient().getCode(requestModel);
default:
throw ArgumentError('Invalid codegenLanguage');
}