revision.ts 1005 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @swagger
  3. *
  4. * components:
  5. * schemas:
  6. * Revision:
  7. * description: Revision
  8. * type: object
  9. * properties:
  10. * _id:
  11. * type: string
  12. * description: revision ID
  13. * example: 5e0734e472560e001761fa68
  14. * __v:
  15. * type: number
  16. * description: DB record version
  17. * example: 0
  18. * author:
  19. * $ref: '#/components/schemas/User/properties/_id'
  20. * body:
  21. * type: string
  22. * description: content body
  23. * example: |
  24. * # test
  25. *
  26. * test
  27. * format:
  28. * type: string
  29. * description: format
  30. * example: markdown
  31. * path:
  32. * type: string
  33. * description: path
  34. * example: /user/alice/test
  35. * createdAt:
  36. * type: string
  37. * description: date created at
  38. * example: 2010-01-01T00:00:00.000Z
  39. */