swagger.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. openapi: 3.0.1
  2. info:
  3. title: Api documentation
  4. version: 1.0.0
  5. paths:
  6. /pdf/sync-job:
  7. post:
  8. responses:
  9. '202':
  10. content:
  11. application/json:
  12. schema:
  13. type: object
  14. properties:
  15. status:
  16. type: string
  17. enum:
  18. - HTML_EXPORT_IN_PROGRESS
  19. - HTML_EXPORT_DONE
  20. - FAILED
  21. - PDF_EXPORT_DONE
  22. required:
  23. - status
  24. description: Accepted
  25. '500':
  26. content:
  27. application/json:
  28. schema:
  29. $ref: '#/components/schemas/InternalServerError'
  30. description: Internal Server Error
  31. description: |2-
  32. Sync job pdf convert status with GROWI.
  33. Register or update job inside pdf-converter with given jobId, expirationDate, and status.
  34. Return resulting status of job to GROWI.
  35. parameters: []
  36. requestBody:
  37. required: false
  38. content:
  39. application/json:
  40. schema:
  41. properties:
  42. jobId:
  43. type: string
  44. expirationDate:
  45. type: string
  46. status:
  47. type: string
  48. enum:
  49. - HTML_EXPORT_IN_PROGRESS
  50. - HTML_EXPORT_DONE
  51. - FAILED
  52. type: object
  53. tags:
  54. - PdfCtrl
  55. operationId: pdfCtrlSyncJobStatus
  56. tags:
  57. - name: PdfCtrl
  58. components:
  59. schemas:
  60. InternalServerError:
  61. type: object
  62. properties:
  63. name:
  64. type: string
  65. minLength: 1
  66. description: The error name
  67. example: INTERNAL_SERVER_ERROR
  68. default: INTERNAL_SERVER_ERROR
  69. message:
  70. type: string
  71. minLength: 1
  72. description: An error message
  73. status:
  74. type: number
  75. description: The status code of the exception
  76. example: 500
  77. default: 500
  78. errors:
  79. type: array
  80. items:
  81. $ref: '#/components/schemas/GenericError'
  82. description: A list of related errors
  83. stack:
  84. type: string
  85. description: The stack trace (only in development mode)
  86. required:
  87. - name
  88. - message
  89. - status
  90. GenericError:
  91. type: object
  92. properties:
  93. name:
  94. type: string
  95. minLength: 1
  96. description: The error name
  97. message:
  98. type: string
  99. minLength: 1
  100. description: An error message
  101. additionalProperties: true
  102. required:
  103. - name
  104. - message