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

Header params supported #4

Merged
merged 3 commits into from Oct 10, 2017
Merged

Conversation

pouyanh
Copy link
Contributor

@pouyanh pouyanh commented Oct 9, 2017

  • Basic auth using api functions now is available: swaggerRequest.data.headers are filled by defined swaggerRequest.params which are given in swaggerRequest.input

  • I didn' checked it agianst apiKey auth in header

  • I've changed post|put content-type when request has swaggerRequest.data.formData from 'multipart/form-dataf-8' to 'multipart/form-data'. Caz I realised it was a typo. Is that correct?

- Enabled basic auth using function input
	api[namespace][path.operationId]({
		Authorization: 'Basic ' + btoa(username + ':' + password)
	})

Signed-off-by: Pouyan Heyratpour <pouyan@cloudzero.ir>
Signed-off-by: Pouyan Heyratpour <pouyan@cloudzero.ir>
@pouyanh
Copy link
Contributor Author

pouyanh commented Oct 9, 2017

I've also created a new tag 0.0.6 to be a new release to let us install it using bower

- Changing swaggerRequest.data.{query, formData} caused wrong further requests

Signed-off-by: Pouyan Heyratpour <pouyan@cloudzero.ir>
@olaferlandsen
Copy link
Owner

Oh, great work! Thanks too much

@olaferlandsen olaferlandsen merged commit 4ddc437 into olaferlandsen:master Oct 10, 2017
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.

None yet

2 participants