openapi.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "sharebymail",
  5. "version": "0.0.1",
  6. "description": "Share provider which allows you to share files by mail",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "Capabilities": {
  24. "type": "object",
  25. "properties": {
  26. "files_sharing": {
  27. "type": "object",
  28. "required": [
  29. "sharebymail"
  30. ],
  31. "properties": {
  32. "sharebymail": {
  33. "type": "object",
  34. "required": [
  35. "enabled",
  36. "send_password_by_mail",
  37. "upload_files_drop",
  38. "password",
  39. "expire_date"
  40. ],
  41. "properties": {
  42. "enabled": {
  43. "type": "boolean"
  44. },
  45. "send_password_by_mail": {
  46. "type": "boolean"
  47. },
  48. "upload_files_drop": {
  49. "type": "object",
  50. "required": [
  51. "enabled"
  52. ],
  53. "properties": {
  54. "enabled": {
  55. "type": "boolean"
  56. }
  57. }
  58. },
  59. "password": {
  60. "type": "object",
  61. "required": [
  62. "enabled",
  63. "enforced"
  64. ],
  65. "properties": {
  66. "enabled": {
  67. "type": "boolean"
  68. },
  69. "enforced": {
  70. "type": "boolean"
  71. }
  72. }
  73. },
  74. "expire_date": {
  75. "type": "object",
  76. "required": [
  77. "enabled",
  78. "enforced"
  79. ],
  80. "properties": {
  81. "enabled": {
  82. "type": "boolean"
  83. },
  84. "enforced": {
  85. "type": "boolean"
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "paths": {},
  98. "tags": []
  99. }