go-cwcraft

command module
v0.0.0-...-5942b11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 19 Imported by: 0

README

CW Craft Site 1.5

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!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL