Skip to content

Add configuration option to enable the addition of HttpServletRequest objects to API definition methods - #16

Merged
bartveenstra merged 3 commits into
Backbase:devfrom
danielabeledo:dev
May 28, 2020
Merged

bartveenstra merged 3 commits into
Backbase:devfrom
danielabeledo:dev

Conversation

@danielabeledo

Copy link
Copy Markdown

add configuration option to enable the addition of HttpServletRequest objects to API definition methods

addServletRequest will be defaulted to false. When enabled, it will add a HttpServletRequest object to the API interface methods

For a better view of my changes in the Template, an expanded view

{{#allParams}}
	{{>queryParams}}
	{{>pathParams}}
	{{>headerParams}}
	{{>bodyParams}}
	{{>formParams}}
	{{#hasMore}},{{/hasMore}}
	{{^hasMore}}
		{{#reactive}}, {{/reactive}}
		{{^reactive}}
			{{#addServletRequest}}, {{/addServletRequest}}
		{{/reactive}}
	{{/hasMore}}
{{/allParams}}
{{#addServletRequest}}
	HttpServletRequest httpServletRequest
	{{#reactive}}, {{/reactive}}
{{/addServletRequest}}
{{#reactive}}ServerWebExchange exchange{{/reactive}}

@bartveenstra
bartveenstra self-requested a review May 28, 2020 07:12
@bartveenstra

Copy link
Copy Markdown
Contributor

Can you add this new awesome option to the release notes?

@bartveenstra
bartveenstra merged commit 7c90a9f into Backbase:dev May 28, 2020
santam85 pushed a commit that referenced this pull request Mar 30, 2021
Add configuration option to enable the addition of HttpServletRequest objects to API definition methods
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