-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ibaranga/openapi-generator …
…into ibaranga-master
- Loading branch information
Showing
7 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...JavaSpring/libraries/spring-http-interface/httpInterfacesRestClientConfiguration.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) ({{{generatorVersion}}}). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package {{configPackage}}; | ||
|
||
{{#apiInfo}} | ||
{{#apis}} | ||
import {{apiPackage}}.{{classname}}; | ||
{{/apis}} | ||
{{/apiInfo}} | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.web.client.RestClient; | ||
import org.springframework.web.client.support.RestClientAdapter; | ||
import org.springframework.web.service.invoker.HttpServiceProxyFactory; | ||
|
||
public abstract class HttpInterfacesAbstractConfigurator { | ||
private final RestClient restClient; | ||
public HttpInterfacesAbstractConfigurator(final RestClient restClient) { | ||
this.restClient = restClient; | ||
} | ||
|
||
{{#apiInfo}} | ||
{{#apis}} | ||
@Bean(name = "{{configPackage}}.HttpInterfacesAbstractConfigurator.{{classVarName}}") | ||
{{classname}} {{classVarName}}HttpProxy() { | ||
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(RestClientAdapter.create(restClient)).build(); | ||
return factory.createClient({{classname}}.class); | ||
} | ||
|
||
{{/apis}} | ||
{{/apiInfo}} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
...vaSpring/libraries/spring-http-interface/httpInterfacesRestTemplateConfiguration.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) ({{{generatorVersion}}}). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package {{configPackage}}; | ||
|
||
{{#apiInfo}} | ||
{{#apis}} | ||
import {{apiPackage}}.{{classname}}; | ||
{{/apis}} | ||
{{/apiInfo}} | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.web.client.RestTemplate; | ||
import org.springframework.web.client.support.RestTemplateAdapter; | ||
import org.springframework.web.service.invoker.HttpServiceProxyFactory; | ||
|
||
public abstract class HttpInterfacesAbstractConfigurator { | ||
private final RestTemplate restTemplate; | ||
public HttpInterfacesAbstractConfigurator(final RestTemplate restTemplate) { | ||
this.restTemplate = restTemplate; | ||
} | ||
|
||
{{#apiInfo}} | ||
{{#apis}} | ||
@Bean(name = "{{configPackage}}.HttpInterfacesAbstractConfigurator.{{classVarName}}") | ||
{{classname}} {{classVarName}}HttpProxy() { | ||
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(RestTemplateAdapter.create(restTemplate)).build(); | ||
return factory.createClient({{classname}}.class); | ||
} | ||
|
||
{{/apis}} | ||
{{/apiInfo}} | ||
|
||
} |
File renamed without changes.
Empty file.