Skip to main content

Automate API Integration Code

This guide will explore integrating APIs using WiseGPT for personalized code generation. Whether you have an existing project or a new one created from DhiWise, it works seamlessly in both cases for API Integration.

By leveraging this tool, you can streamline your coding process and enhance code readability effortlessly.

Let's dive into the process and see how this approach can transform your coding experience.

1

Install WiseGPT extension

To install the WiseGPT extension, open VS Code, go to Extensions, search for WiseGPT, and install it.


2

Initiate the process

Open WiseGPT in VS Code. and click on Automate API Integration Code .

Open WiseGPT in VS Code. and click on Automate API Integration
Code.


3

Allow codebase analysis

Click Allow to let WiseGPT analyze your source code for personalized code generation.

Click Allow to let WiseGPT analyze your source code for personalized code generation


4

Upload Postman collection or use cURL


Upload your Postman Collection JSON file.

Upload your Postman Collection JSON file


5

Select the API endpoint

Choose the API endpoint from the list provided and click Proceed.

Choose the API endpoint from the list provided and Click Proceed

6

Select the integration page

Select the page/component/file where you want to integrate the API.

Select the page/component/file where you want to integrate the API


7

Select the code library

Choose the libraries you want to use and proceed.

Axios or Fetch for React apps.

Axios or Fetch for React apps


8

Review the generated code

There are 4 options here:

Accept All to merge all the code files.


Discard All to ignore the changes for all files.


Accept changes to merge the changes for a single file.


Discard changes to ignore the changes of a single file.


The code generation process is now complete!

note

Provide feedback based on your code generation experience to help us improve.

Provide feedback based on your code generation experience to help us improve

By following these simple steps, you will integrate an API into WiseGPT for personalized code generation, making your development process more efficient and your code readable.