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

Box Endpoint DSL missing options for most api methods

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.x
    • Component/s: camel-box, tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Looking in https://github.com/apache/camel/blob/master/components/camel-box/camel-box-component/src/generated/resources/org/apache/camel/component/box/box.json, none of the URI options for the different box API methods are available to the Endpoint DSL generator.  I don't know if there's an "escape valve" to allow me to apply non-typesafe options if the typesafe one is not available. Maybe it's a bug if the options are just not there.

      Here's the endpoint I expected to write:

      object BoxRouteBuilder extends RouteBuilder() {
      
        override def configure(): Unit = {
          from(timer("box_start").repeatCount(1))
          .to(box("folders/getFolderItems").folderId("12345678")
          .to(kafka("box_file_list")
        }
      
      }

      but instead I had to write this working code:

      object BoxRouteBuilder extends RouteBuilder() {
      
        override def configure(): Unit = {
          from(timer("box_start").repeatCount(1))
          .to("box:folders/getFolderItems?folderId=12345678")
          .to(kafka("box_file_list")
        }
      
      }

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              mgenereu Michael Genereux

              Dates

              • Created:
                Updated:

                Issue deployment