[
https://issues.apache.org/jira/browse/CAMEL-16558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338957#comment-17338957
]
Federico Mariani edited comment on CAMEL-16558 at 5/4/21, 12:47 PM:
--------------------------------------------------------------------
Hi, [https://github.com/apache/camel/pull/5501] , with this PR you can write a
route like
{code:java}
rest().get("/foo").description("Foo endpoint").deprecated().route().log("Hello
/foo").endRest()
{code}
and the resulting yaml looks like:
{code:java}
---
openapi: "3.0.2"
info: {}
servers:
- url: ""
paths:
/foo:
get:
responses:
"200": {}
deprecated: true
summary: "Foo endpoint"
{code}
ref - https://swagger.io/docs/specification/paths-and-operations - Deprecated
Operations section
was (Author: federico mariani):
Hi, [https://github.com/apache/camel/pull/5501] , with this PR you can write a
route like
{code:java}
rest().get("/foo").description("Foo endpoint").deprecated().route().log("Hello
/foo").endRest()
{code}
and the resulting yaml looks like:
{code:java}
---
openapi: "3.0.2"
info: {}
servers:
- url: ""
paths:
/foo:
get:
responses:
"200": {}
deprecated: true
summary: "Foo endpoint"
{code}
> openapi - Mark an endpoint as deprecated with camel-swagger-java or
> camel-openapi-java
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-16558
> URL: https://issues.apache.org/jira/browse/CAMEL-16558
> Project: Camel
> Issue Type: New Feature
> Components: camel-openapi-java, camel-swagger-java
> Affects Versions: 2.25.2, 3.10.0
> Environment: I tested both spring boot examples that i mention on the
> StackOverflow question, and also the application i work with, which is a
> Spring application 5.1 and apache-camel version 2.25.2.
> Reporter: José Bustamante
> Priority: Major
> Labels: deprecated, endpoint, openapi, rest, swagger
> Fix For: 3.x
>
>
> Good morning,
> I'm using camel-swagger-java for a while and i found something: I can't
> deprecate an endpoint with camel-swagger-java or camel-openapi-java. I assume
> that feature is not available yet. Is it going to be at some point?
> I have raised a question in stackoverflow but no luck so far:
> [https://stackoverflow.com/questions/67265296/mark-an-endpoint-as-deprecated-with-camel-swagger-java]
> Regards
--
This message was sent by Atlassian Jira
(v8.3.4#803005)