mirror of
https://github.com/foss42/apidash.git
synced 2025-05-29 21:06:01 +08:00
Merge branch 'main' into main
This commit is contained in:
@ -46,12 +46,8 @@ class Codegen {
|
|||||||
return DartHttpCodeGen().getCode(rM);
|
return DartHttpCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.dartDio:
|
case CodegenLanguage.dartDio:
|
||||||
return DartDioCodeGen().getCode(rM);
|
return DartDioCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.javaAsyncHttpClient:
|
case CodegenLanguage.goHttp:
|
||||||
return JavaAsyncHttpClientGen().getCode(rM);
|
return GoHttpCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.javaHttpClient:
|
|
||||||
return JavaHttpClientCodeGen().getCode(rM);
|
|
||||||
case CodegenLanguage.javaOkHttp:
|
|
||||||
return JavaOkHttpCodeGen().getCode(rM);
|
|
||||||
case CodegenLanguage.jsAxios:
|
case CodegenLanguage.jsAxios:
|
||||||
return AxiosCodeGen().getCode(rM);
|
return AxiosCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.jsFetch:
|
case CodegenLanguage.jsFetch:
|
||||||
@ -60,10 +56,16 @@ class Codegen {
|
|||||||
return AxiosCodeGen(isNodeJs: true).getCode(rM);
|
return AxiosCodeGen(isNodeJs: true).getCode(rM);
|
||||||
case CodegenLanguage.nodejsFetch:
|
case CodegenLanguage.nodejsFetch:
|
||||||
return FetchCodeGen(isNodeJs: true).getCode(rM);
|
return FetchCodeGen(isNodeJs: true).getCode(rM);
|
||||||
|
case CodegenLanguage.javaAsyncHttpClient:
|
||||||
|
return JavaAsyncHttpClientGen().getCode(rM);
|
||||||
|
case CodegenLanguage.javaHttpClient:
|
||||||
|
return JavaHttpClientCodeGen().getCode(rM);
|
||||||
|
case CodegenLanguage.javaOkHttp:
|
||||||
|
return JavaOkHttpCodeGen().getCode(rM);
|
||||||
|
case CodegenLanguage.juliaHttp:
|
||||||
|
return JuliaHttpClientCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.kotlinOkHttp:
|
case CodegenLanguage.kotlinOkHttp:
|
||||||
return KotlinOkHttpCodeGen().getCode(rM);
|
return KotlinOkHttpCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.phpGuzzle:
|
|
||||||
return PhpGuzzleCodeGen().getCode(rM);
|
|
||||||
case CodegenLanguage.pythonHttpClient:
|
case CodegenLanguage.pythonHttpClient:
|
||||||
return PythonHttpClientCodeGen()
|
return PythonHttpClientCodeGen()
|
||||||
.getCode(rM, boundary: boundary ?? getNewUuid());
|
.getCode(rM, boundary: boundary ?? getNewUuid());
|
||||||
@ -75,10 +77,8 @@ class Codegen {
|
|||||||
return RustReqwestCodeGen().getCode(rM);
|
return RustReqwestCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.rustUreq:
|
case CodegenLanguage.rustUreq:
|
||||||
return RustUreqCodeGen().getCode(rM, boundary: boundary);
|
return RustUreqCodeGen().getCode(rM, boundary: boundary);
|
||||||
case CodegenLanguage.goHttp:
|
case CodegenLanguage.phpGuzzle:
|
||||||
return GoHttpCodeGen().getCode(rM);
|
return PhpGuzzleCodeGen().getCode(rM);
|
||||||
case CodegenLanguage.juliaHttp:
|
|
||||||
return JuliaHttpClientCodeGen().getCode(rM);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -272,16 +272,16 @@ enum CodegenLanguage {
|
|||||||
nodejsAxios("node.js (axios)", "javascript", "js"),
|
nodejsAxios("node.js (axios)", "javascript", "js"),
|
||||||
nodejsFetch("node.js (fetch)", "javascript", "js"),
|
nodejsFetch("node.js (fetch)", "javascript", "js"),
|
||||||
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
|
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
|
||||||
phpGuzzle("PHP (guzzle)", "php", "php"),
|
|
||||||
pythonHttpClient("Python (http.client)", "python", "py"),
|
|
||||||
pythonRequests("Python (requests)", "python", "py"),
|
pythonRequests("Python (requests)", "python", "py"),
|
||||||
|
pythonHttpClient("Python (http.client)", "python", "py"),
|
||||||
rustActix("Rust (Actix Client)", "rust", "rs"),
|
rustActix("Rust (Actix Client)", "rust", "rs"),
|
||||||
rustReqwest("Rust (reqwest)", "rust", "rs"),
|
rustReqwest("Rust (reqwest)", "rust", "rs"),
|
||||||
rustUreq("Rust (ureq)", "rust", "rs"),
|
rustUreq("Rust (ureq)", "rust", "rs"),
|
||||||
javaOkHttp("Java (okhttp3)", "java", 'java'),
|
javaOkHttp("Java (okhttp3)", "java", 'java'),
|
||||||
javaAsyncHttpClient("Java (async-http-client)", "java", "java"),
|
javaAsyncHttpClient("Java (async-http-client)", "java", "java"),
|
||||||
javaHttpClient("Java (HttpClient)", "java", "java"),
|
javaHttpClient("Java (HttpClient)", "java", "java"),
|
||||||
juliaHttp("Julia (HTTP)", "julia", "jl");
|
juliaHttp("Julia (HTTP)", "julia", "jl"),
|
||||||
|
phpGuzzle("PHP (guzzle)", "php", "php");
|
||||||
|
|
||||||
const CodegenLanguage(this.label, this.codeHighlightLang, this.ext);
|
const CodegenLanguage(this.label, this.codeHighlightLang, this.ext);
|
||||||
final String label;
|
final String label;
|
||||||
|
Reference in New Issue
Block a user