Skip to content

Ids generator #8

@hector-js

Description

@hector-js

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions