stoplight_elements library
Support for doing something awesome.
More dartdocs go here.
Classes
- ApiModel
- API模型注解
- ApiParameter
- API参数注解
- ApiPath
- API路径注解
- ApiProperty
- API属性注解
- ApiRequestBody
- API请求体注解
- ApiResponse
- API响应注解
- ApiSecurityScheme
- API安全方案注解
- ApiTag
- API标签注解
- OpenApiConfig
- OpenApiRegistry
- StoplightLayoutOptions
- StoplightRouterOptions
- StoplightTryItCredentialPolicyOptions
-
TypedApiResponse<
T> - 类型安全的API响应注解
Functions
-
buildStoplightElementsHtml(
{required String openapiUrl, String title = 'API Documentation', String stoplightElementsJsUrl = "https://unpkg.com/@stoplight/elements/web-components.min.js", String stoplightElementsCssUrl = "https://unpkg.com/@stoplight/elements/styles.min.css", String stoplightElementsFaviconUrl = "https://fastapi.tiangolo.com/img/favicon.png", String apiDescriptionDocument = "", String basePath = "", bool hideInternal = false, bool hideTryIt = false, String tryItCorsProxy = "", String tryItCredentialPolicy = StoplightTryItCredentialPolicyOptions.omit, String layout = StoplightLayoutOptions.sidebar, String logo = "", String router = StoplightRouterOptions.history}) → String