mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-11 22:51:05 +00:00
fix: api reference page
This commit is contained in:
parent
a4289cb394
commit
71dc0f3598
11 changed files with 33 additions and 40 deletions
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
openapi: POST /add
|
||||
---
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
openapi: GET /session
|
||||
---
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
openapi: delete /delete/{id}
|
||||
---
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
openapi: post /add
|
||||
---
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
openapi: put /update/{id}
|
||||
---
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
openapi: POST /search
|
||||
---
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
openapi: POST /fastsearch
|
||||
---
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
openapi: get /fastsearch
|
||||
---
|
||||
3
apps/docs/api-reference/endpoints/search/post-search.mdx
Normal file
3
apps/docs/api-reference/endpoints/search/post-search.mdx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
openapi: post /search
|
||||
---
|
||||
|
|
@ -29,8 +29,7 @@
|
|||
{
|
||||
"name": "API Reference",
|
||||
"url": "api-reference/endpoints",
|
||||
"openapi": "https://v2.api.supermemory.ai/openapi",
|
||||
"version": "3.1.0"
|
||||
"openapi": "./openapi.json"
|
||||
},
|
||||
{
|
||||
"name": "Changelog",
|
||||
|
|
@ -66,6 +65,21 @@
|
|||
{
|
||||
"group": "Changelog",
|
||||
"pages": ["changelog/overview"]
|
||||
},
|
||||
{
|
||||
"group": "Memory Management",
|
||||
"pages": [
|
||||
"api-reference/endpoints/memory-management/post-add",
|
||||
"api-reference/endpoints/memory-management/put-update",
|
||||
"api-reference/endpoints/memory-management/delete-delete"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Search",
|
||||
"pages": [
|
||||
"api-reference/endpoints/search/post-search",
|
||||
"api-reference/endpoints/search/get-fastsearch"
|
||||
]
|
||||
}
|
||||
],
|
||||
"footerSocials": {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
"version": "2.0.0"
|
||||
},
|
||||
"servers": [
|
||||
{ "url": "http://localhost:3000", "description": "Local Server" },
|
||||
{
|
||||
"url": "https://v2.api.supermemory.ai",
|
||||
"description": "Production Server"
|
||||
|
|
@ -51,12 +50,6 @@
|
|||
"tags": ["Memory Management"],
|
||||
"parameters": [],
|
||||
"description": "Add a new memory with content and metadata",
|
||||
"request": {
|
||||
"body": {
|
||||
"description": "Memory content and metadata",
|
||||
"content": { "application/json": { "schema": {} } }
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
|
|
@ -132,13 +125,6 @@
|
|||
}
|
||||
],
|
||||
"description": "Update an existing memory",
|
||||
"request": {
|
||||
"params": { "description": "Memory ID", "schema": {} },
|
||||
"body": {
|
||||
"description": "Updated memory content",
|
||||
"content": { "application/json": { "schema": {} } }
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
|
|
@ -206,8 +192,7 @@
|
|||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Delete a memory",
|
||||
"request": { "params": { "description": "Memory ID", "schema": {} } }
|
||||
"description": "Delete a memory"
|
||||
}
|
||||
},
|
||||
"/search": {
|
||||
|
|
@ -283,12 +268,6 @@
|
|||
"tags": ["Search"],
|
||||
"parameters": [],
|
||||
"description": "Search through documents with metadata filtering",
|
||||
"request": {
|
||||
"body": {
|
||||
"description": "Search parameters",
|
||||
"content": { "application/json": { "schema": {} } }
|
||||
}
|
||||
},
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
|
|
@ -392,10 +371,7 @@
|
|||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Fast, lossy search using quantized embeddings",
|
||||
"request": {
|
||||
"query": { "description": "Search parameters", "schema": {} }
|
||||
}
|
||||
"description": "Fast, lossy search using quantized embeddings"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue