openapi-snippet icon indicating copy to clipboard operation
openapi-snippet copied to clipboard

Support providing parameter values and post body values

Open yxl opened this issue 2 years ago • 0 comments

The project is awesome! The pull request want to make the project more perfect by providing the following patches:

  • getEndpointSnippets supports an optional values parameter to provide query parameters. However other 3 types of parameters, such as header, path and cookie are not supported. The pull request extends the values parameter to support other 3 types of parameters.
  • Considering postBody is another commonly used way to pass parameters, the pull request support the set the postBody values as well.
  • In addition, the pull request updates the test.js to cover the patches and all tests has been passed.

yxl avatar May 04 '23 04:05 yxl