Difference between revisions of "Server List Filters"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "'''Implementation Status:''' Under Development<br/> (WIP) full (bool) empty (bool) IPAddress IPv4Address IPv6Address port (int)...")
 
m
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Category:API]]
 +
 
'''Implementation Status:''' [[API_Implementation_Statuses#Under Development|Under Development]]<br/>
 
'''Implementation Status:''' [[API_Implementation_Statuses#Under Development|Under Development]]<br/>
 
(WIP)
 
(WIP)
  
full (bool)
+
full (bool)<br>
empty (bool)
+
empty (bool)<br>
IPAddress
+
IPAddress (string)<br>
IPv4Address
+
IPv4Address (string)<br>
IPv6Address
+
IPv6Address (string)<br>
port (int)
+
port (int)<br>
gameMode (int)
+
gameMode (string)<br>
mostPlayers
+
currentPlayers (int)<br>
leastPlayers
+
maxPlayers (int)<br>
build
+
mostCurrentPlayers (int)<br>
current (bool)
+
leastCurrentPlayers (int)<br>
lastUpdated (ISO date)
+
mostMaxPlayers (int)<br>
firstSeen (ISO date)
+
leastMaxPlayers (int)<br>
connectable (bool)
+
build (int)<br>
password (bool)
+
current (bool)<br>
preferAF (bool)
+
lastUpdated (ISO date)<br>
gold (bool)
+
firstSeen (ISO date)<br>
nameContains (string, partial match)
+
connectable (bool)<br>
name (string)
+
password (bool)<br>
description (string)
+
preferAF (bool)<br>
descriptionContains (string, partial match)
+
gold (bool)<br>
 +
nameContains (string, partial match)<br>
 +
name (string)<br>
 +
description (string - this is a bit silly, this probably won't be implemented)<br>
 +
descriptionContains (string, partial match)<br>
 +
 
 +
All booleans are represented as 0/1<br>
 +
All data types can be negated with ! preceeding the value - e.g. /servers/currentPlayers/!0 (same as /servers/empty/0)
 +
 
  
 +
The filters are concatenated together in the request URI to form an AND filter.  There is no mechanism for an OR filter, you need to make multiple queries and join the resulting sets yourself.
  
[[:Category:API]]
+
https://api.kag2d.com/servers/full/0/empty/0

Latest revision as of 21:48, 14 June 2012


Implementation Status: Under Development
(WIP)

full (bool)
empty (bool)
IPAddress (string)
IPv4Address (string)
IPv6Address (string)
port (int)
gameMode (string)
currentPlayers (int)
maxPlayers (int)
mostCurrentPlayers (int)
leastCurrentPlayers (int)
mostMaxPlayers (int)
leastMaxPlayers (int)
build (int)
current (bool)
lastUpdated (ISO date)
firstSeen (ISO date)
connectable (bool)
password (bool)
preferAF (bool)
gold (bool)
nameContains (string, partial match)
name (string)
description (string - this is a bit silly, this probably won't be implemented)
descriptionContains (string, partial match)

All booleans are represented as 0/1
All data types can be negated with ! preceeding the value - e.g. /servers/currentPlayers/!0 (same as /servers/empty/0)


The filters are concatenated together in the request URI to form an AND filter. There is no mechanism for an OR filter, you need to make multiple queries and join the resulting sets yourself.

https://api.kag2d.com/servers/full/0/empty/0