CRUD operations for facts, observations, and dreams.
curl "http://localhost:8000/facts?limit=20&offset=0" \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/facts/42 \ -H "Authorization: Bearer $API_KEY"
curl -X PATCH http://localhost:8000/facts/42 \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "Updated fact text"}'
curl -X DELETE http://localhost:8000/facts/42 \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/observations \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/observations/7 \ -H "Authorization: Bearer $API_KEY"
curl -X PATCH http://localhost:8000/observations/7 \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{"summary": "Updated observation"}'
curl -X DELETE http://localhost:8000/observations/7 \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/dreams \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/dreams/3 \ -H "Authorization: Bearer $API_KEY"
curl -X DELETE http://localhost:8000/dreams/3 \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/stats \ -H "Authorization: Bearer $API_KEY"
{ "fact_count": 245, "observation_count": 38, "dream_count": 5 }
curl -X POST http://localhost:8000/memory/clear \ -H "Authorization: Bearer $API_KEY"
curl -X POST http://localhost:8000/memory/observations/clear \ -H "Authorization: Bearer $API_KEY"