Skip to content

interface IDocumentProvider

cangjie
public interface IDocumentProvider

功能:定义 OpenAPI 文档提供器接口。

成员概览

成员功能
func getDooucmentNames()返回已注册的文档名称集合。
func create(String, IServiceProvider)按名称创建 OpenAPI 文档。

func getDooucmentNames()

cangjie
func getDooucmentNames(): Collection<String>

功能:返回已注册的文档名称集合。

返回值:

  • Collection<String> - 当前可用的文档名称集合。

func create(String, IServiceProvider)

cangjie
func create(documentName: String, services: IServiceProvider): OpenApiDocument

功能:按名称创建 OpenAPI 文档。

参数:

返回值: