Skip to content

Add endpoints object #1

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Make sure operation names are unique.
  • Loading branch information
mooreds committed Dec 15, 2020
commit 8a5bc6c8a8b48be98acc051ed1d482b8dc68d176
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class ClientLibraryPlugin extends BaseGroovyPlugin {
// remove the optional param from a copy. the normal endpoint doesn't get the optional segment param
def modifiable_json = jsonSlurper.parseText(JsonOutput.toJson(json))
modifiable_json.params = modifiable_json.params - optionalUrlSegment
modifiable_json.methodName = modifiable_json.methodName + "WithoutId"
root['endpoints'][normalEndpoint][http_method] = modifiable_json
}
}
Expand Down