Burgyn / MMLib.SwaggerForOcelot

This repo contains swagger extension for ocelot.
MIT License
353 stars 94 forks source link

Fetch Error #88

Closed smoretti-github closed 4 years ago

smoretti-github commented 4 years ago

Describe the bug Fetch error: undefined /swagger/docs/v1/documents

Expected behavior A clear and concise description of what you expected to happen.

To Reproduce If it is a possible attache:

  1. Original downstream swagger.json.

    {
    "openapi": "3.0.1",
    "info": {
    "title": "Dum.QueryService API",
    "version": "v1"
    },
    "paths": {
    "/api/CategoriaEvento/GetCategoriaEventoProperties": {
      "get": {
        "tags": [
          "CategoriaEvento"
        ],
        "parameters": [
          {
            "name": "categoriaEventoSelected",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/CategoriaEvento/GetFormaDocumentoProperties": {
      "get": {
        "tags": [
          "CategoriaEvento"
        ],
        "parameters": [
          {
            "name": "formaDocumentoSelected",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VOC_EventoObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/CategoriaEvento/GetTipologicaList": {
      "get": {
        "tags": [
          "CategoriaEvento"
        ],
        "parameters": [
          {
            "name": "tableName",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "tipologica",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/CategoriaEvento/GetFormaDocumentoList": {
      "get": {
        "tags": [
          "CategoriaEvento"
        ],
        "parameters": [
          {
            "name": "categoriaEvento",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/Description": {
      "get": {
        "tags": [
          "Documento"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetDocumento": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentoObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentoObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentoObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetAllDocumento": {
      "get": {
        "tags": [
          "Documento"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetDocumentSearchList": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "marcatura",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": -1
            }
          },
          {
            "name": "data_marcatura",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_marcatura_al",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "ente",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "forma",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "numero_documento",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_documento",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_documento_al",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "uor_mittente",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "numero_protocollo",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_protocollo",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_protocollo_al",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "aoo_mittente",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "matricola",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentiView_ResultObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentiView_ResultObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentiView_ResultObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetLastDocumentoById": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/DocumentoObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetDaMarcareNonAssegnateAMe": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetDaMarcareAssegnateAMe": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetSenzaVariazioni": {
      "get": {
        "tags": [
          "Documento"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetUORById": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Documento/GetAooById": {
      "get": {
        "tags": [
          "Documento"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Matricola/GetLastMatricolaById": {
      "get": {
        "tags": [
          "Matricola"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Matricola/GetMatricolaSearchList": {
      "get": {
        "tags": [
          "Matricola"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "matricola",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "cognome",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "nome",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "codice_fiscale",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "data_nascita",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "grado",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "posizione",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": -1
            }
          },
          {
            "name": "categoria",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          },
          {
            "name": "ufficio",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaViewObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaViewObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaViewObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Matricola/GetMatricola": {
      "get": {
        "tags": [
          "Matricola"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MatricolaObject"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatricolaObject"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatricolaObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/Matricola/GetMatricolaListByUser": {
      "get": {
        "tags": [
          "Matricola"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MatricolaObject"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetIdUtente": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "nome_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetUfficiobyId": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetRuoloById": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetArticolazioneUtenteById": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetComandoUtenteById": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetVOC_ArticolazioneUtenteById": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/Profilo/GetVOC_ComandoUtenteById": {
      "get": {
        "tags": [
          "Profilo"
        ],
        "parameters": [
          {
            "name": "id_utente",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/Variazione/GetContingenteListByIdMatricola": {
      "get": {
        "tags": [
          "Variazione"
        ],
        "parameters": [
          {
            "name": "id_matricola",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContingenteObject"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContingenteObject"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContingenteObject"
                  }
                }
              }
            }
          }
        }
      }
    }
    },
    "components": {
    "schemas": {
      "VOC_EventoObject": {
        "type": "object",
        "properties": {
          "annotazioni": {
            "type": "string",
            "nullable": true
          },
          "autoritaDefault": {
            "type": "string",
            "nullable": true
          },
          "bloccato": {
            "type": "boolean",
            "nullable": true
          },
          "descrizione": {
            "type": "string",
            "nullable": true
          },
          "enteDefault": {
            "type": "string",
            "nullable": true
          },
          "formaDefault": {
            "type": "string",
            "nullable": true
          },
          "haAutorita": {
            "type": "boolean",
            "nullable": true
          },
          "haData": {
            "type": "boolean",
            "nullable": true
          },
          "haDataEvento": {
            "type": "boolean",
            "nullable": true
          },
          "haDescrizioneEnte": {
            "type": "boolean",
            "nullable": true
          },
          "haEnte": {
            "type": "boolean",
            "nullable": true
          },
          "haLegislazione": {
            "type": "boolean",
            "nullable": true
          },
          "haNumero": {
            "type": "boolean",
            "nullable": true
          },
          "haOrganodiControllo": {
            "type": "boolean",
            "nullable": true
          },
          "haReparto": {
            "type": "boolean",
            "nullable": true
          },
          "iD_Evento": {
            "type": "integer",
            "format": "int32"
          },
          "iD_Livello": {
            "type": "integer",
            "format": "int32"
          },
          "iD_Tipologia": {
            "type": "integer",
            "format": "int32"
          },
          "organodiControlloDefault": {
            "type": "string",
            "nullable": true
          },
          "periodo_Fine": {
            "type": "string",
            "format": "date-time"
          },
          "periodo_Inizio": {
            "type": "string",
            "format": "date-time"
          },
          "repartoDefault": {
            "type": "string",
            "nullable": true
          },
          "tipoRaccoltaDefault": {
            "type": "string",
            "nullable": true
          },
          "voC_AutoritaDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_CategoriaEvento": {
            "type": "integer",
            "format": "int32"
          },
          "voC_EnteDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_FormaDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_FormaDocumento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_OrganodiControlloDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_RepartoDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_TipoRaccoltaDefault": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentoObject": {
        "required": [
          "categoriaEvento",
          "dataEvento",
          "formaDocumento"
        ],
        "type": "object",
        "properties": {
          "aoO_destinazione": {
            "type": "string",
            "nullable": true
          },
          "aoO_mittente": {
            "type": "string",
            "nullable": true
          },
          "articolazioneUtente": {
            "type": "string",
            "nullable": true
          },
          "autorita": {
            "type": "string",
            "nullable": true
          },
          "categoriaEvento": {
            "type": "string"
          },
          "comandoUtente": {
            "type": "string",
            "nullable": true
          },
          "data_Documento": {
            "type": "string",
            "format": "date"
          },
          "data_Marcatura": {
            "type": "string",
            "format": "date"
          },
          "data_Protocollo": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "data_Protocollo_Mittente": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataEvento": {
            "type": "string",
            "format": "date"
          },
          "dataRegistrazione": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "descrizione_Ente": {
            "type": "string",
            "nullable": true
          },
          "ente": {
            "type": "string",
            "nullable": true
          },
          "formaDocumento": {
            "type": "string"
          },
          "iD_Documento": {
            "type": "integer",
            "format": "int32"
          },
          "iD_DocumentoRiferimento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "iD_Utente": {
            "type": "string",
            "nullable": true
          },
          "legge": {
            "type": "string",
            "nullable": true
          },
          "link_Documento": {
            "type": "string",
            "nullable": true
          },
          "num_Documento": {
            "type": "string",
            "nullable": true
          },
          "num_Protocollo": {
            "type": "string",
            "nullable": true
          },
          "num_Protocollo_Mittente": {
            "type": "string",
            "nullable": true
          },
          "numeroFoglio": {
            "type": "string",
            "nullable": true
          },
          "numeroRegistro": {
            "type": "string",
            "nullable": true
          },
          "oggetto": {
            "type": "string",
            "nullable": true
          },
          "organodiControllo": {
            "type": "string",
            "nullable": true
          },
          "origine": {
            "type": "boolean"
          },
          "progTipoDiRaccolta": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "protAnnulato": {
            "type": "boolean",
            "nullable": true
          },
          "reparto": {
            "type": "string",
            "nullable": true
          },
          "tipoDiRaccolta": {
            "type": "string",
            "nullable": true
          },
          "uoR_destinazione": {
            "type": "string",
            "nullable": true
          },
          "uoR_mittente": {
            "type": "string",
            "nullable": true
          },
          "utente": {
            "type": "string",
            "nullable": true
          },
          "voC_ArticolazioneUtente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Autorita": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_CategoriaEvento": {
            "type": "integer",
            "format": "int32"
          },
          "voC_ComandoUtente": {
            "type": "integer",
            "format": "int32"
          },
          "voC_Ente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_FormaDocumento": {
            "type": "integer",
            "format": "int32"
          },
          "voC_Legge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_OrganoDiControllo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Reparto": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_TipoDiRaccolta": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentiView_ResultObject": {
        "type": "object",
        "properties": {
          "aoO_destinazione": {
            "type": "string",
            "nullable": true
          },
          "aoO_mittente": {
            "type": "string",
            "nullable": true
          },
          "articolazioneUtente": {
            "type": "string",
            "nullable": true
          },
          "autorita": {
            "type": "string",
            "nullable": true
          },
          "categoriaEvento": {
            "type": "string",
            "nullable": true
          },
          "comandoUtente": {
            "type": "string",
            "nullable": true
          },
          "data_Documento": {
            "type": "string",
            "format": "date-time"
          },
          "data_Marcatura": {
            "type": "string",
            "format": "date-time"
          },
          "data_Protocollo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_Protocollo_Mittente": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataEvento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRegistrazione": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "descrizione_Ente": {
            "type": "string",
            "nullable": true
          },
          "ente": {
            "type": "string",
            "nullable": true
          },
          "formaDocumento": {
            "type": "string",
            "nullable": true
          },
          "iD_Documento": {
            "type": "integer",
            "format": "int32"
          },
          "iD_DocumentoRiferimento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "iD_Utente": {
            "type": "string",
            "nullable": true
          },
          "legge": {
            "type": "string",
            "nullable": true
          },
          "link_Documento": {
            "type": "string",
            "nullable": true
          },
          "matricolaMeccanografica": {
            "type": "string",
            "nullable": true
          },
          "num_Documento": {
            "type": "string",
            "nullable": true
          },
          "num_Protocollo": {
            "type": "string",
            "nullable": true
          },
          "num_Protocollo_Mittente": {
            "type": "string",
            "nullable": true
          },
          "numeroFoglio": {
            "type": "string",
            "nullable": true
          },
          "numeroRegistro": {
            "type": "string",
            "nullable": true
          },
          "oggetto": {
            "type": "string",
            "nullable": true
          },
          "organodiControllo": {
            "type": "string",
            "nullable": true
          },
          "origine": {
            "type": "boolean"
          },
          "progTipoDiRaccolta": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "protAnnulato": {
            "type": "boolean",
            "nullable": true
          },
          "reparto": {
            "type": "string",
            "nullable": true
          },
          "tipoDiRaccolta": {
            "type": "string",
            "nullable": true
          },
          "uoR_destinazione": {
            "type": "string",
            "nullable": true
          },
          "uoR_mittente": {
            "type": "string",
            "nullable": true
          },
          "utente": {
            "type": "string",
            "nullable": true
          },
          "voC_ArticolazioneUtente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Autorita": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_CategoriaEvento": {
            "type": "integer",
            "format": "int32"
          },
          "voC_ComandoUtente": {
            "type": "integer",
            "format": "int32"
          },
          "voC_Ente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_FormaDocumento": {
            "type": "integer",
            "format": "int32"
          },
          "voC_Legge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_OrganoDiControllo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Reparto": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_TipoDiRaccolta": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MatricolaObject": {
        "type": "object",
        "properties": {
          "articolazione": {
            "type": "string",
            "nullable": true
          },
          "bloccato": {
            "type": "boolean",
            "nullable": true
          },
          "categoria": {
            "type": "string",
            "nullable": true
          },
          "categoria_nello_Stato": {
            "type": "string",
            "nullable": true
          },
          "cessazione_dal_Servizio": {
            "type": "string",
            "nullable": true
          },
          "codice_Fiscale": {
            "type": "string",
            "nullable": true
          },
          "cognome": {
            "type": "string",
            "nullable": true
          },
          "comune_Nascita": {
            "type": "string",
            "nullable": true
          },
          "contingente": {
            "type": "string",
            "nullable": true
          },
          "data_Arruolamento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_Cessazione_dal_Servizio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_Nascita": {
            "type": "string",
            "format": "date-time"
          },
          "grado": {
            "type": "string",
            "nullable": true
          },
          "iD_Matricola": {
            "type": "integer",
            "format": "int32"
          },
          "iD_Tipologia": {
            "type": "integer",
            "format": "int32"
          },
          "localita_Nascita": {
            "type": "string",
            "nullable": true
          },
          "matricola_CEMM": {
            "type": "string",
            "nullable": true
          },
          "matricolaMeccanografica": {
            "type": "string",
            "nullable": true
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "posizione_Servizio": {
            "type": "string",
            "nullable": true
          },
          "posizione_Stato": {
            "type": "string",
            "nullable": true
          },
          "provincia_Nascita": {
            "type": "string",
            "nullable": true
          },
          "reparto": {
            "type": "string",
            "nullable": true
          },
          "ruolo": {
            "type": "string",
            "nullable": true
          },
          "sesso": {
            "type": "string",
            "nullable": true
          },
          "stato_Estero_Nascita": {
            "type": "string",
            "nullable": true
          },
          "titolo_Studio": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MatricolaViewObject": {
        "type": "object",
        "properties": {
          "articolazione": {
            "type": "string",
            "nullable": true
          },
          "bloccato": {
            "type": "boolean",
            "nullable": true
          },
          "categoria": {
            "type": "string",
            "nullable": true
          },
          "categoria_nello_Stato": {
            "type": "string",
            "nullable": true
          },
          "cessazione_dal_Servizio": {
            "type": "string",
            "nullable": true
          },
          "codice_Fiscale": {
            "type": "string",
            "nullable": true
          },
          "cognome": {
            "type": "string",
            "nullable": true
          },
          "comune_Nascita": {
            "type": "string",
            "nullable": true
          },
          "contingente": {
            "type": "string",
            "nullable": true
          },
          "data_Arruolamento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_Cessazione_dal_Servizio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "data_Nascita": {
            "type": "string",
            "format": "date-time"
          },
          "grado": {
            "type": "string",
            "nullable": true
          },
          "iD_Matricola": {
            "type": "integer",
            "format": "int32"
          },
          "iD_Tipologia": {
            "type": "integer",
            "format": "int32"
          },
          "iD_Utente": {
            "type": "string",
            "nullable": true
          },
          "iD_UtenteContesto": {
            "type": "integer",
            "format": "int32"
          },
          "localita_Nascita": {
            "type": "string",
            "nullable": true
          },
          "matricola_CEMM": {
            "type": "string",
            "nullable": true
          },
          "matricolaMeccanografica": {
            "type": "string",
            "nullable": true
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "posizione_Servizio": {
            "type": "string",
            "nullable": true
          },
          "posizione_Stato": {
            "type": "string",
            "nullable": true
          },
          "provincia_Nascita": {
            "type": "string",
            "nullable": true
          },
          "reparto": {
            "type": "string",
            "nullable": true
          },
          "ruolo": {
            "type": "string",
            "nullable": true
          },
          "sesso": {
            "type": "string",
            "nullable": true
          },
          "stato_Estero_Nascita": {
            "type": "string",
            "nullable": true
          },
          "titolo_Studio": {
            "type": "string",
            "nullable": true
          },
          "ufficio": {
            "type": "string",
            "nullable": true
          },
          "ufficio_Descr": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContingenteObject": {
        "type": "object",
        "properties": {
          "iD_Matricola": {
            "type": "integer",
            "format": "int32"
          },
          "autorita": {
            "type": "string",
            "nullable": true
          },
          "comando": {
            "type": "string",
            "nullable": true
          },
          "contingente": {
            "type": "string",
            "nullable": true
          },
          "data_Provvedimento": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataDecorrenza": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ente": {
            "type": "string",
            "nullable": true
          },
          "iD_Variazione": {
            "type": "integer",
            "format": "int32"
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "num_Provvedimento": {
            "type": "string",
            "nullable": true
          },
          "organodiControllo": {
            "type": "string",
            "nullable": true
          },
          "registrazioneDataRegistro": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "registrazioneNumFoglio": {
            "type": "string",
            "nullable": true
          },
          "registrazioneNumRegistro": {
            "type": "string",
            "nullable": true
          },
          "tipoProvvedimento": {
            "type": "string",
            "nullable": true
          },
          "voC_Autorita": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Comando": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Contingente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_Ente": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_OrganoDiControllo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "voC_TipoProvvedimento": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
    }
    }
  2. Ocelot ReRoutes configuration.

    {
    "ReRoutes": [
    //documento api config
    {
      "DownstreamPathTemplate": "/api/documento/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44360
        }
      ],
      "UpstreamPathTemplate": "/api/documento/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documents"
      //"AuthenticationOptions": {
      //  "AuthenticationProviderKey": "TestKey",
      //  "AllowedScopes": []
      //},
      //"RateLimitOptions": {
      //  "ClientWhitelist": [],
      //  "EnableRateLimiting": true,
      //  "Period": "1s",
      //  "PeriodTimespan": 1,
      //  "Limit": 1
      //},
      //"FileCacheOptions": {
      //  "TtlSeconds": 15,
      //  "Region": "productcaching"
      //}
    },
    {
      "DownstreamPathTemplate": "/api/categoriaevento/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44360
        }
      ],
      "UpstreamPathTemplate": "/api/categoriaevento/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documents"
    },
    {
      "DownstreamPathTemplate": "/api/matricola/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44360
        }
      ],
      "UpstreamPathTemplate": "/api/matricola/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documents"
    },
    {
      "DownstreamPathTemplate": "/api/profilo/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44360
        }
      ],
      "UpstreamPathTemplate": "/api/profilo/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documents"
    },
    {
      "DownstreamPathTemplate": "/api/variazione/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44360
        }
      ],
      "UpstreamPathTemplate": "/api/variazione/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documents"
    },
    {
      "DownstreamPathTemplate": "/api/documentocommand/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44396
        }
      ],
      "UpstreamPathTemplate": "/api/documentocommand/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documentscommand"
    },
    {
      "DownstreamPathTemplate": "/api/logcommand/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44396
        }
      ],
      "UpstreamPathTemplate": "/api/logcommand/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documentscommand"
    },
    {
      "DownstreamPathTemplate": "/api/variazionecommand/{everything}",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44396
        }
      ],
      "UpstreamPathTemplate": "/api/variazionecommand/{everything}",
      "UpstreamHttpMethod": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "SwaggerKey": "documentscommand"
    }
    
    //payment api config
    //{
    //  "DownstreamPathTemplate": "/api/payment/{everything}",
    //  "DownstreamScheme": "https",
    //  "DownstreamHostAndPorts": [
    //    {
    //      "Host": "localhost",
    //      "Port": 44302
    //    }
    //  ],
    //  "UpstreamPathTemplate": "/api/payment/{everything}",
    //  "UpstreamHttpMethod": [
    //    "GET",
    //    "POST",
    //    "PUT",
    //    "DELETE"
    //  ],
    //  "AuthenticationOptions": {
    //    "AuthenticationProviderKey": "TestKey",
    //    "AllowedScopes": []
    //  },
    //  "RateLimitOptions": {
    //    "ClientWhitelist": [],
    //    "EnableRateLimiting": true,
    //    "Period": "1s",
    //    "PeriodTimespan": 1,
    //    "Limit": 1
    //  },
    //  "FileCacheOptions": {
    //    "TtlSeconds": 15,
    //    "Region": "paymentcaching"
    //  }
    //}
    ],
    "SwaggerEndPoints": [
    {
      "Key": "documents",
      "Config": [
        {
          "Name": "Dum.QueryService API",
          "Version": "v1",
          "Url": "http://localhost:44360/swagger/v1/swagger.json"
        }
      ]
    },
    {
      "Key": "documentscommand",
      "Config": [
        {
          "Name": "Document.CommandService API",
          "Version": "v1",
          "Url": "http://localhost:44396/swagger/v1/swagger.json"
        }
    
      ]
    }
    ],
    "GlobalConfiguration": {
    "BaseUrl": "http://localhost:44387"
    }
    }
Burgyn commented 4 years ago

Hi, thanks for your report.

I tried to reproduce it, but without success. When I used your configuration I got correct result. image

Are you sure, that the swagger documentation of downstream service is accessible from uri: http://localhost:44396/swagger/v1/swagger.json?

smoretti-github commented 4 years ago

Hi Mino, The Urls were wrong, because i’m working with https protocol and I wrote http://.But now they are correct and I’ve the same error. This is a screenshot of the error: [cid:image001.jpg@01D61C7A.3491DA50] It arrives after one minute.There is a Loading Icon, after a minute the error arrives. Thanks for your intereset in my problem. Bye Simone

Da: Miňo Martiniak notifications@github.com Inviato: venerdì 24 aprile 2020 19:36 A: Burgyn/MMLib.SwaggerForOcelot MMLib.SwaggerForOcelot@noreply.github.com Cc: Moretti Simone S.Moretti@almaviva.it; Author author@noreply.github.com Oggetto: Re: [Burgyn/MMLib.SwaggerForOcelot] Fetch Error (#88)

Hi, thanks for your report.

I tried to reproduce it, but without success. When I used your configuration I got correct result. [image]https://user-images.githubusercontent.com/5930822/80240584-62c1b380-8662-11ea-8fc7-dc5935e35d15.png

Are you sure, that the swagger documentation of downstream service is accessible from uri: http://localhost:44396/swagger/v1/swagger.json?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Burgyn/MMLib.SwaggerForOcelot/issues/88#issuecomment-619150791, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AONT4KPA5JB2OF62CT4EU2TROHEWZANCNFSM4MOJVC7A.

smoretti-github commented 4 years ago

Now It works. Using https:// it works.

Thanks for your help.

We need smart developer like you.

Best Regards Simone

Da: Miňo Martiniak notifications@github.com Inviato: venerdì 24 aprile 2020 19:36 A: Burgyn/MMLib.SwaggerForOcelot MMLib.SwaggerForOcelot@noreply.github.com Cc: Moretti Simone S.Moretti@almaviva.it; Author author@noreply.github.com Oggetto: Re: [Burgyn/MMLib.SwaggerForOcelot] Fetch Error (#88)

Hi, thanks for your report.

I tried to reproduce it, but without success. When I used your configuration I got correct result. [image]https://user-images.githubusercontent.com/5930822/80240584-62c1b380-8662-11ea-8fc7-dc5935e35d15.png

Are you sure, that the swagger documentation of downstream service is accessible from uri: http://localhost:44396/swagger/v1/swagger.json?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Burgyn/MMLib.SwaggerForOcelot/issues/88#issuecomment-619150791, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AONT4KPA5JB2OF62CT4EU2TROHEWZANCNFSM4MOJVC7A.

Burgyn commented 4 years ago

Happy to help.