-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Is your feature request related to a problem? Please describe.
The user wants to create a scenario adding some identifiers in the command line. At this moment this task must be done manually.
Describe the solution you'd like
Given a user wants to generate a scenario for the following endpoint /customers/{id}/product?name={param1}&lastname={param2} adding the identifiers id, param1 and param2 in the command line. When the user execute the following line of code:
hjs g g "customers/{id}/product?name={param1}&lastname={param2}" --id 1 --name mateo --lastname smithThen the user shoud have in the resourse file the following scenario:
{
"_get": {
"/customers/{id}/product?name={param1}&lastname={param2}": [
{
"_req": {
"_id": 1,
"_param1": "mateo",
"_param2": "smith"
},
"_res": {
"_body": {
"Ok": "to be defined"
}
}
}
]
}
}
Also, it should generate the test adding the ids.