Skip to content

CW Craft Site and API | Currently outdated and written pretty shitty :(

License

Notifications You must be signed in to change notification settings

savely-krasovsky/go-cwcraft

Repository files navigation

cw.krasovsky.me

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:

  • equipment
  • alchemy

Returns array of objects with such structure:

Item   item
Basics []basic

Where basic is:

Name   string
Amount int

commands

  • /api/commands/:type/:id (example)

Where type could be:

  • equipment
  • alchemy

Returns object with such structure:

Item          item
Commands      []command
TotalManaCost int

Where command is:

ID              string
Name            string
Amount          int
CommandManaCost int

shops

  • /api/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!

About

CW Craft Site and API | Currently outdated and written pretty shitty :(

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published