openapi.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "comments",
  5. "version": "0.0.1",
  6. "description": "Files app plugin to add comments to files",
  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. "required": [
  26. "files"
  27. ],
  28. "properties": {
  29. "files": {
  30. "type": "object",
  31. "required": [
  32. "comments"
  33. ],
  34. "properties": {
  35. "comments": {
  36. "type": "boolean"
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }
  43. },
  44. "paths": {
  45. "/index.php/apps/comments/notifications/view/{id}": {
  46. "get": {
  47. "operationId": "notifications-view",
  48. "summary": "View a notification",
  49. "tags": [
  50. "notifications"
  51. ],
  52. "security": [
  53. {},
  54. {
  55. "bearer_auth": []
  56. },
  57. {
  58. "basic_auth": []
  59. }
  60. ],
  61. "parameters": [
  62. {
  63. "name": "id",
  64. "in": "path",
  65. "description": "ID of the notification",
  66. "required": true,
  67. "schema": {
  68. "type": "string"
  69. }
  70. }
  71. ],
  72. "responses": {
  73. "303": {
  74. "description": "Redirected to notification",
  75. "headers": {
  76. "Location": {
  77. "schema": {
  78. "type": "string"
  79. }
  80. }
  81. }
  82. },
  83. "404": {
  84. "description": "Notification not found",
  85. "content": {
  86. "text/html": {
  87. "schema": {
  88. "type": "string"
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "tags": []
  98. }