CW Craft API 1.5 documentation
Equipment
/api/equipment
/api/equipment/:id
(example)
/api/equipment?name={url_encoded_name}
/api/equipment?type={url_encoded_type}
Returns object or array of objects with such structure:
ID string
Name string
Stats stats
Type string
ManaCost int
Recipe map[string]int
Where stats
is:
Attack int
Defense int
Mana int
Alchemy
/api/alchemy
/api/alchemy/:id
(example)
/api/alchemy?name={url_encoded_name}
/api/alchemy?type={url_encoded_type}
Returns object or array of objects with such structure:
ID string
Name string
Stats stats
Type string
ManaCost int
Recipe map[string]int
Where stats
is:
Attack int
Defense int
Mana int
resources
/api/resources
/api/resources/:id
(example)
/api/resources?name={url_encoded_name}
Returns object or array of objects with such structure:
ID string
Name string
ManaCost int
Composite bool
Recipe map[string]int
basics
Where type
could be:
Returns array of objects with such structure:
Item item
Basics []basic
Where basic
is:
Name string
Amount int
commands
Where type
could be:
Returns object with such structure:
Item item
Commands []command
TotalManaCost int
Where command
is:
ID string
Name string
Amount int
CommandManaCost int
shops
Returns object with such structure:
Link string
Name string
OwnerName string
OwnerCastle string
Kind string
Mana int
Offers []OfferItem
Where OfferItem
is:
Item string
Price int
Mana int
Feel free to contribute!