Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ids generator #8

Open
hector-js opened this issue Feb 9, 2020 · 0 comments
Open

Ids generator #8

hector-js opened this issue Feb 9, 2020 · 0 comments
Labels

Comments

@hector-js
Copy link
Owner

hector-js commented Feb 9, 2020

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 smith

Then 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant