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

camel-rest - Add openapi to rest-dsl so you can expose rest services from existing schema

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.6.0
    • camel-core, rest
    • None
    • Unknown

    Description

      rest()
      .openapi("my-schema.json")

      When you want to do contract-first with existing schema, then it would be good to make that first-class with rest-dsl, so the schema can be used as-is, and let it automatic map to direct:operationId routes like the convention is typically.

      The openapi should have same binding mode as rest-dsl, so it can automatic map to pojo or back if using json/xml via jackson etc.

      And the api-context can then return the schema file as-is (it may need to adjust the server part to be the actual server - like normal rest-dsl can do).

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: