foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.43k stars 269 forks source link

Added all test cases and fixed bugs for Java (HttpClient) codegen #349

Closed royshruti closed 5 months ago

royshruti commented 5 months ago

PR Description

This PR fixes multiple bugs and adds additional support in the CodeGen for Java(HTTPClient) and also tests the generated code.

Bugs fixed/Support added:

Related Issues

Checklist

Added/updated tests?

We encourage you to add relevant test cases.

Added/updated tests?

Instructions on running the generated code on local computer

  1. As HttpClient is a part of core java, we need to install JDK and JRE on our local system. You can install JDK binaries from Oracle.
  2. We can compile the code using javac JavaHttpClientExample.java where JavaHttpClientExample.java is the file which contains generated code. Then we can run the generated class file using java JavaHttpClientExample.
animator commented 5 months ago

Provide Instructions to run the generated code in local computer.

royshruti commented 5 months ago

@animator I have added the instructions to run the generated code in local computer.

animator commented 5 months ago

@royshruti Please find below my feedback:

animator commented 5 months ago

Closing this PR. You can open a new PR after making all the suggested changes.