Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url http://localhost:3917/item/define \ --header 'Content-Type: application/json' \ --data ' { "id": 1, "name": "Health Potion", "properties": { "cost": 50, "heal": 150 } } '
{ "ok": true, "message": "<string>" }
register a new item definition
Item definition: numeric id, name, and a properties map of named numeric attributes (e.g. cost, damage).
id
name
properties
cost
damage
The body is of type any.
any
Item definition registered in the ItemRegistry.