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

add two api for set path parameter along with tests #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liuqi04
Copy link

@liuqi04 liuqi04 commented Jul 9, 2019

Since struct field pathParameters is private in request.go and anytime we try to new a request, pathParameters will be empty. So we need public api to set path parameters, thus we add these two apis, one for single param, one for mutiple params. Then we can call these apis in other pkgs to set restful request's path parameters, which is really helpful when test and debug.

Since struct field pathParameters is private in request.go and anytime we try to new a request, pathParameters will be empty. So we need public api to set path parameters, thus we add these two apis, one for single param, one for mutiple params. Then we can call these apis in other pkgs to set restful request's path parameters, which is really helpful when test and debug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant