diff --git a/customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk/api.mustache b/customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk/api.mustache index c1e2c434cd..b2b591bb52 100644 --- a/customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk/api.mustache +++ b/customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk/api.mustache @@ -28,6 +28,9 @@ import com.expediagroup.sdk.core.model.Operation * @property params [{{classname}}Params] {{/hasNonBodyParams}} */ + {{#isDeprecated}} + @Deprecated("This operation is deprecated and will be removed in a future version.") + {{/isDeprecated}} class {{classname}} {{#isLinkable}}private constructor{{/isLinkable}}( {{#hasNonBodyParams}} params: {{classname}}Params{{#isLinkable}}?{{/isLinkable}}, @@ -121,4 +124,4 @@ import com.expediagroup.sdk.core.model.Operation {{/isLinkable}} } {{/operation}} -{{/operations}} \ No newline at end of file +{{/operations}} diff --git a/examples/src/main/java/com/expediagroup/sdk/rapid/examples/services/RapidService.java b/examples/src/main/java/com/expediagroup/sdk/rapid/examples/services/RapidService.java index 9f7e3864e5..5ffb9dfbfe 100644 --- a/examples/src/main/java/com/expediagroup/sdk/rapid/examples/services/RapidService.java +++ b/examples/src/main/java/com/expediagroup/sdk/rapid/examples/services/RapidService.java @@ -12,5 +12,4 @@ public abstract class RapidService { .endpoint(Constants.SANDBOX_URL) // remove to connect to the production environment .requestTimeout(10000) .build(); - }