swagger-api/swagger-codegen
Auf GitHub ansehen[Perl] API methods to optionally return HTTP status code and response headers
Open
#1.676 geöffnet am 7. Dez. 2015
Client: Perlhelp wanted
Repository-Metriken
- Stars
- (12.701 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
We want to leverage wantarray in perl to return (data, http_status_code, http_response_headers) if the context is looking for an array (instead of scalar)
Where to start:
- ApiClient.mustache#L133 should return not only data, but also HTTP status code and HTTP response headers
- api.mustache#L139 updates with
wantarray
If you have questions or want to work on this, please reply to let the community know.
Ref: https://github.com/swagger-api/swagger-codegen/wiki/Guidelines-for-Contribution