Beispiel #1
0
        /// <inheritdoc/>
        public SwaggerDocument GetSwagger(string documentName, string host = null, string basePath = null, string[] schemes = null)
        {
            switch (documentName)
            {
            case "Dolittle.Commands":
                return(_commandDocumentGenerator.GetSwagger(documentName, host, basePath, schemes));

            case "Dolittle.Events":
                return(_eventDocumentGenerator.GetSwagger(documentName, host, basePath, schemes));

            case "Dolittle.Queries":
                return(_queryDocumentGenerator.GetSwagger(documentName, host, basePath, schemes));

            default:
                return(_originalGenerator.GetSwagger(documentName, host, basePath, schemes));
            }
        }