Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9869

[camel-rest, camel-swagger-java] Wrong protocol in swagger.json

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.3
    • None
    • Camel
    • None
    • % %
    • Fuse 7.3 Sprint 39

      I am using (bypassed ENTESB-9868) camel-undertow, camel-swagger-java and REST DSL for creating REST endpoint with API doc. I am using HTTPS protocol. (see attached reproducer). I am getting wrong sheme in swagger.json.

      My output on " https://localhost:4444/swagger.json".

      {
          "swagger": "2.0",
          "info": {
              "description": "Camel Rest App with Swagger",
              "version": "1.0",
              "title": "Rest swagger"
          },
          "host": "localhost:4444",
          "basePath": "/",
          "tags": [
              {
                  "name": "user"
              }
          ],
          "schemes": [
              "http"
          ],
          "paths": {
              "/user": {
                  "get": {
                      "tags": [
                          "user"
                      ],
                      "operationId": "route1",
                      "responses": {
                          "200": {}
                      }
                  }
              }
          }
      }
      

              acosenti Andrea Cosentino
              jbouska@redhat.com Jan Bouska
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: