You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marat Gubaidullin (Jira)" <ji...@apache.org> on 2021/12/09 17:54:00 UTC
[jira] [Created] (CAMEL-17308) camel-yaml-dsl: REST
Marat Gubaidullin created CAMEL-17308:
-----------------------------------------
Summary: camel-yaml-dsl: REST
Key: CAMEL-17308
URL: https://issues.apache.org/jira/browse/CAMEL-17308
Project: Camel
Issue Type: Improvement
Components: camel-yaml-dsl
Reporter: Marat Gubaidullin
Current YAML REST DSL supports 2 ways of defining services:
1. verb-based
{code:java}
- rest:
verb:
- method: get
uri: "/foo"
{code}
2. method-based
{code:java}
- rest:
get:
- uri: "/foo"
{code}
Also mixed code seems legit and confusing
{code:java}
- rest:
verb:
- method: get
uri: "/foo"
get:
- uri: "/getFoo"
{code}
Could we select the only one type of syntax in YAML DSL (ex. 2. method-based)?
Otherwise it requires to support all of variants in tools like Karavan without additional value to end-user.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)