fix: api reference page

This commit is contained in:
Dhravya Shah 2025-03-23 21:06:22 -07:00
parent a4289cb394
commit 71dc0f3598
11 changed files with 33 additions and 40 deletions

View file

@ -1,3 +0,0 @@
---
openapi: POST /add
---

View file

@ -1,3 +0,0 @@
---
openapi: GET /session
---

View file

@ -0,0 +1,3 @@
---
openapi: delete /delete/{id}
---

View file

@ -0,0 +1,3 @@
---
openapi: post /add
---

View file

@ -0,0 +1,3 @@
---
openapi: put /update/{id}
---

View file

@ -1,3 +0,0 @@
---
openapi: POST /search
---

View file

@ -1,3 +0,0 @@
---
openapi: POST /fastsearch
---

View file

@ -0,0 +1,3 @@
---
openapi: get /fastsearch
---

View file

@ -0,0 +1,3 @@
---
openapi: post /search
---

View file

@ -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": {

View file

@ -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"
}
}
},