Guest User

Untitled

a guest
Dec 4th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. {
  2. "openapi": "3.0.4",
  3. "info": {
  4. "title": "Logic Knowledge Base API",
  5. "version": "v1"
  6. },
  7. "paths": {
  8. "/": {
  9. "get": {
  10. "tags": [
  11. "KBRagServer"
  12. ],
  13. "description": "Root endpoint that returns the current date/time",
  14. "responses": {
  15. "200": {
  16. "description": "OK",
  17. "content": {
  18. "text/plain": {
  19. "schema": {
  20. "type": "string"
  21. }
  22. }
  23. }
  24. }
  25. }
  26. }
  27. },
  28. "/search": {
  29. "post": {
  30. "tags": [
  31. "KBRagServer"
  32. ],
  33. "description": "Search the knowledge base for relevant documentation and information.",
  34. "requestBody": {
  35. "content": {
  36. "application/json": {
  37. "schema": {
  38. "$ref": "#/components/schemas/SearchRequest"
  39. }
  40. }
  41. }
  42. },
  43. "responses": {
  44. "200": {
  45. "description": "OK",
  46. "content": {
  47. "application/json": {
  48. "schema": {
  49. "$ref": "#/components/schemas/SearchResponse"
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. },
  58. "components": {
  59. "schemas": {
  60. "SearchRequest": {
  61. "type": "object",
  62. "properties": {
  63. "query": {
  64. "type": "string",
  65. "nullable": true
  66. },
  67. "k": {
  68. "type": "integer",
  69. "format": "int32"
  70. }
  71. },
  72. "additionalProperties": false
  73. },
  74. "SearchResponse": {
  75. "type": "object",
  76. "properties": {
  77. "searchResults": {
  78. "type": "array",
  79. "items": {
  80. "$ref": "#/components/schemas/SearchResult"
  81. },
  82. "nullable": true
  83. }
  84. },
  85. "additionalProperties": false
  86. },
  87. "SearchResult": {
  88. "type": "object",
  89. "properties": {
  90. "text": {
  91. "type": "string",
  92. "nullable": true
  93. },
  94. "sourceName": {
  95. "type": "string",
  96. "nullable": true
  97. }
  98. },
  99. "additionalProperties": false
  100. }
  101. }
  102. },
  103. "tags": [
  104. {
  105. "name": "KBRagServer"
  106. }
  107. ]
  108. }
Advertisement
Add Comment
Please, Sign In to add comment