Examples
$ curl -X GET "http://api.ahlcg.castorjo.fr/v1/cycles?sort=en_name&fields=en_name,fr_name"
Get the list of the names of all cycles sorted by their english name.
array(4) {
[0]=>
array(3) {
["id"]=>
string(7) "CoreSet"
["en_name"]=>
string(8) "Core Set"
["fr_name"]=>
string(14) "Boîte de base"
}
[1]=>
array(3) {
["id"]=>
string(11) "SideStories"
["en_name"]=>
string(12) "Side Stories"
["fr_name"]=>
string(24) "Aventures indépendantes"
}
[2]=>
array(3) {
["id"]=>
string(16) "TheDunwichLegacy"
["en_name"]=>
string(18) "The Dunwich Legacy"
["fr_name"]=>
string(22) "L'Héritage de Dunwich"
}
[3]=>
array(3) {
["id"]=>
string(16) "ThePathToCarcosa"
["en_name"]=>
string(19) "The Path to Carcosa"
["fr_name"]=>
NULL
}
}
$ curl -X GET "http://api.ahlcg.castorjo.fr/v1/cards?sort=health&desc=health&range=0-1&fields=en_name,fr_name,type,health&type(id)=Investigator"
Get the list of the 2 investigators in the Core Set with the highest health.
array(2) {
[0]=>
array(3) {
["id"]=>
int(10301005)
["en_name"]=>
string(14) "William Yorick"
["type"]=>
array(3) {
["id"]=>
string(12) "Investigator"
["en_name"]=>
string(12) "Investigator"
["nb_cards"]=>
int(16)
}
}
[1]=>
array(3) {
["id"]=>
int(10301001)
["en_name"]=>
string(13) "Mark Harrigan"
["type"]=>
array(3) {
["id"]=>
string(12) "Investigator"
["en_name"]=>
string(12) "Investigator"
["nb_cards"]=>
int(16)
}
}
}
$ curl -X GET "http://api.ahlcg.castorjo.fr/v1/cards/101001"
Get all the data for Roland Banks.
NULL