Memories
Base: /api/memories
Store and retrieve server memories and notes
Handler: MemoryHandler
GET
/api/memories
All Memories
List of all stored memories.
Response Example
[{"id":1,"title":"Server-Event","content":"Am 20. Januar findet ein PvP-Turnier statt","created_by":"Admin","created_at":"2025-01-15T10:00:00Z","tags":["event","pvp"]}]
cURL
curl http://localhost:5550/api/memories
POST
/api/memories/create
Create Memory
Creates a new memory.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
title
|
string | Yes | Memory title |
content
|
string | Yes | Content/text |
tags
|
array | No | Tags for categorization |
Response Example
{"success":true,"message":"Memory created","id":2}
cURL
curl -X POST http://localhost:5550/api/memories/create \
-H 'Content-Type: application/json' \
-d '{"title":"Bauregeln","content":"Nicht im Spawn bauen!","tags":["rules"]}'
Internal Behavior
Memories are stored in data/memories.json.
DELETE
/api/memories/{id}
Delete Memory
Deletes a memory by its ID.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id
|
integer | Yes | Memory ID |
Response Example
{"success":true,"message":"Memory 1 deleted"}
cURL
curl -X DELETE http://localhost:5550/api/memories/1