Skip to content

Conversation

canadaduane
Copy link
Contributor

Some libraries use lower case httpMethod names for method calls. For
example, Ruby's Faraday library uses 'get', 'put', 'post', 'delete'.

Rather than this unweildy Ruby code produced by a mustache template:
self.send("GET".downcase, path, request_opts)

This patch would allow for a more tidy output such as:
get(path, request_opts)

Some libraries use lower case httpMethod names for method calls. For
example, Ruby's Faraday library uses 'get', 'put', 'post', 'delete'.

Rather than this unweildy Ruby code produced by a mustache template:
  self.send("GET".downcase, path, request_opts)

This patch would allow for a more tidy output such as:
  get(path, request_opts)
fehguy added a commit that referenced this pull request Sep 18, 2013
Add an 'httpMethodLowerCase' property
@fehguy fehguy merged commit e851262 into swagger-api:master Sep 18, 2013
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.

2 participants