openapi.yaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. openapi: 3.0.3
  2. info:
  3. title: 方案计划文档管理系统 API
  4. version: 1.6.0
  5. description: DMS第一阶段接口;Q3-B正文检索、原文件预览及1.6 LibreOffice离线文档转换与PDF预览。
  6. servers:
  7. - url: /
  8. paths:
  9. /api/v1/health:
  10. get:
  11. operationId: getDmsHealth
  12. summary: DMS健康检查
  13. security: []
  14. parameters:
  15. - $ref: './components/parameters.yaml#/XRequestId'
  16. responses:
  17. '200':
  18. $ref: './components/responses.yaml#/HealthSuccess'
  19. '500':
  20. $ref: './components/responses.yaml#/InternalError'
  21. /api/v1/auth/login:
  22. $ref: './paths/auth.yaml#/Login'
  23. /api/v1/auth/logout:
  24. $ref: './paths/auth.yaml#/Logout'
  25. /api/v1/users/me:
  26. $ref: './paths/users.yaml#/CurrentUser'
  27. /api/v1/organizations/tree:
  28. $ref: './paths/organizations.yaml#/OrganizationTree'
  29. /api/v1/users:
  30. $ref: './paths/users.yaml#/Users'
  31. /api/v1/config/ui-dictionaries:
  32. $ref: './paths/configuration.yaml#/UiDictionaries'
  33. /api/v1/categories/tree:
  34. $ref: './paths/categories.yaml#/CategoryTree'
  35. /api/v1/categories:
  36. $ref: './paths/categories.yaml#/Categories'
  37. /api/v1/categories/{id}:
  38. $ref: './paths/categories.yaml#/Category'
  39. /api/v1/documents:
  40. $ref: './paths/documents.yaml#/Documents'
  41. /api/v1/documents/{id}:
  42. $ref: './paths/documents.yaml#/Document'
  43. /api/v1/documents/batch-import:
  44. $ref: './paths/documents.yaml#/DocumentBatchImport'
  45. /api/v1/documents/{id}/preview:
  46. $ref: './paths/documents.yaml#/DocumentPreview'
  47. /api/v1/documents/{id}/download:
  48. $ref: './paths/documents.yaml#/DocumentDownload'
  49. /api/v1/main-plans/{id}/sub-plans:
  50. $ref: './paths/documents.yaml#/SubPlans'
  51. /api/v1/attachments:
  52. $ref: './paths/documents.yaml#/Attachments'
  53. /api/v1/attachments/{id}:
  54. $ref: './paths/documents.yaml#/Attachment'
  55. /api/v1/attachments/batch-import:
  56. $ref: './paths/documents.yaml#/AttachmentBatchImport'
  57. /api/v1/attachments/{id}/main-plans:
  58. $ref: './paths/documents.yaml#/AttachmentMainPlans'
  59. /api/v1/main-plans/{id}/attachments:
  60. $ref: './paths/documents.yaml#/MainPlanAttachments'
  61. /api/v1/main-plans/{id}/attachments/bind:
  62. $ref: './paths/documents.yaml#/MainPlanAttachmentBinding'
  63. /api/v1/main-plans/{id}/attachments/{attachmentId}:
  64. $ref: './paths/documents.yaml#/MainPlanAttachment'
  65. /api/v1/documents/{id}/permissions:
  66. $ref: './paths/documents.yaml#/DocumentPermissions'
  67. /api/v1/audit/logs:
  68. $ref: './paths/audit.yaml#/AuditLogs'
  69. /api/v1/statistics/documents:
  70. $ref: './paths/audit.yaml#/DocumentStatistics'
  71. /api/v1/audit/statistics/trend:
  72. $ref: './paths/audit.yaml#/AuditTrendStatistics'
  73. /api/v1/audit/statistics/actions:
  74. $ref: './paths/audit.yaml#/AuditActionStatistics'
  75. /api/v1/audit/statistics/users:
  76. $ref: './paths/audit.yaml#/AuditUserStatistics'
  77. /api/v1/recycle-bin/documents:
  78. $ref: './paths/recycle-bin.yaml#/RecycleBinDocuments'
  79. /api/v1/recycle-bin/documents/{id}/restore:
  80. $ref: './paths/recycle-bin.yaml#/RestoreRecycleBinDocument'
  81. components:
  82. securitySchemes:
  83. BearerAuth:
  84. $ref: './components/security-schemes.yaml#/BearerAuth'
  85. schemas:
  86. StringId:
  87. $ref: './components/schemas.yaml#/StringId'
  88. UtcDateTime:
  89. $ref: './components/schemas.yaml#/UtcDateTime'
  90. PageResult:
  91. $ref: './components/schemas.yaml#/PageResult'
  92. ErrorResponse:
  93. $ref: './components/schemas.yaml#/ErrorResponse'
  94. LoginRequest:
  95. $ref: './components/schemas.yaml#/LoginRequest'
  96. LoginResponse:
  97. $ref: './components/schemas.yaml#/LoginResponse'
  98. UserSummary:
  99. $ref: './components/schemas.yaml#/UserSummary'
  100. OrganizationNode:
  101. $ref: './components/schemas.yaml#/OrganizationNode'
  102. UserPageResponse:
  103. $ref: './components/schemas.yaml#/UserPageResponse'
  104. CategoryNode:
  105. $ref: './components/schemas.yaml#/CategoryNode'
  106. CreateCategoryRequest:
  107. $ref: './components/schemas.yaml#/CreateCategoryRequest'
  108. UpdateCategoryRequest:
  109. $ref: './components/schemas.yaml#/UpdateCategoryRequest'
  110. DocumentSummary:
  111. $ref: './components/schemas.yaml#/DocumentSummary'
  112. DocumentDetail:
  113. $ref: './components/schemas.yaml#/DocumentDetail'
  114. AttachmentBindingSummary:
  115. $ref: './components/schemas.yaml#/AttachmentBindingSummary'
  116. BindAttachmentsRequest:
  117. $ref: './components/schemas.yaml#/BindAttachmentsRequest'
  118. BindAttachmentsResponse:
  119. $ref: './components/schemas.yaml#/BindAttachmentsResponse'
  120. UnbindAttachmentResponse:
  121. $ref: './components/schemas.yaml#/UnbindAttachmentResponse'
  122. PermissionEntry:
  123. $ref: './components/schemas.yaml#/PermissionEntry'
  124. SavePermissionsRequest:
  125. $ref: './components/schemas.yaml#/SavePermissionsRequest'
  126. PermissionDetailResponse:
  127. $ref: './components/schemas.yaml#/PermissionDetailResponse'
  128. AuditLogSummary:
  129. $ref: './components/schemas.yaml#/AuditLogSummary'
  130. AuditLogPageResponse:
  131. $ref: './components/schemas.yaml#/AuditLogPageResponse'
  132. DocumentStatisticsResponse:
  133. $ref: './components/schemas.yaml#/DocumentStatisticsResponse'
  134. AuditTrendResponse:
  135. $ref: './components/schemas.yaml#/AuditTrendResponse'
  136. AuditActionStatisticsResponse:
  137. $ref: './components/schemas.yaml#/AuditActionStatisticsResponse'
  138. AuditUserStatisticsResponse:
  139. $ref: './components/schemas.yaml#/AuditUserStatisticsResponse'
  140. DeletedBySnapshot:
  141. $ref: './components/schemas.yaml#/DeletedBySnapshot'
  142. RecycleBinDocumentSummary:
  143. $ref: './components/schemas.yaml#/RecycleBinDocumentSummary'
  144. RecycleBinDocumentPageResponse:
  145. $ref: './components/schemas.yaml#/RecycleBinDocumentPageResponse'
  146. RestoreDocumentRequest:
  147. $ref: './components/schemas.yaml#/RestoreDocumentRequest'
  148. RestoreDocumentResult:
  149. $ref: './components/schemas.yaml#/RestoreDocumentResult'
  150. RestoreDocumentResponse:
  151. $ref: './components/schemas.yaml#/RestoreDocumentResponse'
  152. DictionaryOption:
  153. $ref: './components/schemas.yaml#/DictionaryOption'
  154. UiDictionaries:
  155. $ref: './components/schemas.yaml#/UiDictionaries'
  156. UiDictionariesResponse:
  157. $ref: './components/schemas.yaml#/UiDictionariesResponse'
  158. RoleCode:
  159. $ref: './components/schemas.yaml#/RoleCode'
  160. AllowedModule:
  161. $ref: './components/schemas.yaml#/AllowedModule'
  162. DocumentType:
  163. $ref: './components/schemas.yaml#/DocumentType'
  164. DocumentStatus:
  165. $ref: './components/schemas.yaml#/DocumentStatus'
  166. SecurityLevel:
  167. $ref: './components/schemas.yaml#/SecurityLevel'
  168. VisibilityType:
  169. $ref: './components/schemas.yaml#/VisibilityType'
  170. AttachmentType:
  171. $ref: './components/schemas.yaml#/AttachmentType'
  172. SubjectType:
  173. $ref: './components/schemas.yaml#/SubjectType'
  174. AllowedAction:
  175. $ref: './components/schemas.yaml#/AllowedAction'
  176. CategoryType:
  177. $ref: './components/schemas.yaml#/CategoryType'
  178. EnabledStatus:
  179. $ref: './components/schemas.yaml#/EnabledStatus'
  180. AuditResult:
  181. $ref: './components/schemas.yaml#/AuditResult'
  182. AuditAction:
  183. $ref: './components/schemas.yaml#/AuditAction'
  184. AuditTarget:
  185. $ref: './components/schemas.yaml#/AuditTarget'
  186. security:
  187. - BearerAuth: []