Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17308

camel-yaml-dsl: REST

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.16.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      Current YAML REST DSL supports 2 ways of defining services:
      1. verb-based

      - rest:
          verb:
            - method: get
              uri: "/foo"
      

      2. method-based

      - rest:
          get:
            - uri: "/foo"
      

      Also mixed code seems legit and confusing

      - rest:
          verb:
            - method: get
              uri: "/foo"
          get:
            - uri: "/getFoo"
      

      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.

      Attachments

        Issue Links

          Activity

            People

              klease78 Karen Lease
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: