Open varshil-shah opened 4 days ago
Can I work on this issue???
You can mention the below details in this thread:
UI Addition:
This feature will be accessible within the request body editor. Users can invoke it by typing {{
(double curly brackets), which will reveal the list of available random placeholders.
Random Data Types:
Initial options will include random values for email, username, names, and potentially others. The faker
package in Flutter will be used to generate this data without needing to modify environment variables.
Package Used:
I will utilize the faker
package for Flutter to generate these random values.
Environment Variables:
No need to leverage environment variables for this feature, as the faker
package provides sufficient randomness for testing purposes.
As you are a first time contributor to this project, I recommend you to pick up an open issue first and resolve it to get familiar with the codebase, before working on adding this completely new feature.
Alright, Thanks for your response.
Implement Mock Data provider for API Testing
Description
Currently, when testing API endpoints in the API Dash repository, users must manually enter or modify details such as email, username, and other user-specific information. This manual effort can be tedious and error-prone, especially during repeated testing. To streamline this process, we propose implementing a feature that generates random placeholder values for common fields like
email
,username
, etc.Feature Details
Introduce a set of predefined random data variables (e.g.,
{{$randomEmail}}
,{{$randomUsername}}
) that can be used in the API requests. These placeholders will automatically populate with randomized data when the API is called, allowing testers to quickly simulate unique user details without manual input.Benefits
Implementation Suggestions
{{$randomEmail}}
with generated values.This feature will greatly enhance developer productivity and provide a more seamless testing experience in the API Dash environment.