openapi-snippet
openapi-snippet copied to clipboard
Support providing parameter values and post body values
The project is awesome! The pull request want to make the project more perfect by providing the following patches:
getEndpointSnippetssupports an optionalvaluesparameter to provide query parameters. However other 3 types of parameters, such as header, path and cookie are not supported. The pull request extends thevaluesparameter to support other 3 types of parameters.- Considering
postBodyis 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.jsto cover the patches and all tests has been passed.