TShock/TShockAPI
stevenh dee2c1a9f4 Refactored output processing to always return RestObject's
Refactored method names to be consistent with function e.g. Off -> ServerOff

Added new endpoints:-
/v2/server/status - Status query including player and rules matching common query tool requirements such as qstat. The json returned uses native types e.g. int's where possible
/v2/groups/list - Lists groups
/v2/groups/read - Query group detail
/v2/groups/destroy - Remove a group
/v2/groups/create - Create a group
/v2/players/list - Lists players including basic details
/v2/users/create - Create a user
/v2/users/list - Lists users basic user details applying a filter if specified.

Refactored missing parameter and error handling to use common utility methods RestError, RestMissingParam which ensures consistency across all functions and protects against null object references

Removed maxplayers from /status to ensure 100% compatibility, this and more details can be found in the new end point /v2/server/status

Protected against null names in user/activelist

Refactored variable checks to use string.IsNullOrWhiteSpace where applicable to capture errors early in the RestAPI

Added the ability to location users by "id" matching the underlying API.

Refactored locating players, bans & users to utility methods to ensure consitency across the api and eliminate duplicate code making for easier maintainence

NOTE: Duplicate and invalid DB entries currently can still be made if the DB format hasn't been updated to with missing unique and not null constaints

Removed { RequiresToken = true } from RestCommand constructors as this is the default anyway.

Optimised function calls so that tests are processed sequentially avoiding unnessasary operations in failure cases

Cleaned up formatting ensuring consistent line endings, indentation and single line if layout

Fixed ServerCommand duplicate key issue for multi line returns, now uses a single "response" string with embeded newlines

Fixed PlayerKill output using verb instead of parameters for "from" option
2012-02-16 12:03:08 +00:00
..
config also, there needs a permission change from editspawn to manageregion 2011-08-15 18:19:33 -04:00
DB Added better support for detection of duplicate users 2012-02-16 11:30:44 +00:00
Extensions Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Net Replace usages of ASCII with UTF8 2012-01-18 20:56:18 +08:00
Properties REST endpoint /v2/users/activelist now null checks and works with 0 players. 2012-02-09 21:43:35 -07:00
Rest Refactored output processing to always return RestObject's 2012-02-16 12:03:08 +00:00
BackupManager.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Commands.cs Fixed how ban logic works so it matches the description of the variables EnableBanOnUsernames & EnableIPBans 2012-02-16 11:08:53 +00:00
ConfigFile.cs Added config option for how often to save ssi, and applied that to the save checker. 2012-02-04 16:39:36 -05:00
FileTools.cs Removed try cache on config file, will now fail startup. Fixes #334 2012-02-02 21:41:14 -07:00
GeoIPCountry.cs Re-add MaxMind's license 2012-01-01 03:10:43 -07:00
GetDataHandlers.cs fix for noclip detection sometimes being activated by liquids 2012-02-14 18:39:43 -05:00
Group.cs Fixed internal object and DB inconsitencies for modified default groups 2012-02-16 11:23:39 +00:00
HandlerList.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
IPackable.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Log.cs Catch objectdisposedexception when writing to log file 2012-01-15 11:09:48 +08:00
Newtonsoft.Json.dll Added Newtonsoft.Json.dll 2011-06-02 01:51:19 -06:00
PacketBufferer.cs Warn instead of error. 2012-02-04 09:52:33 +08:00
Permissions.cs Added permission for seeing ids when using /who 2012-01-26 19:41:12 -05:00
postbuild.bat Oops, wasn't supposed to change that 2011-12-13 17:27:32 +08:00
RconHandler.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Resources.Designer.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Resources.resx Removed mousefontchars, valid chars are 0x20-0xA9(32-169) 2011-07-09 10:00:00 -04:00
StatTracker.cs Basic Lua loading prep. 2012-01-03 16:54:38 -07:00
TShock.cs Fixed internal object and DB inconsitencies for modified default groups 2012-02-16 11:23:39 +00:00
TShockAPI.csproj Added config option for how often to save ssi, and applied that to the save checker. 2012-02-04 16:39:36 -05:00
TShockAPI.licenseheader Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
TSPlayer.cs A player should be teleported to remembered position after he is finished being harassed to login. 2012-02-06 20:17:39 -05:00
UpdateManager.cs Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Utils.cs Check for null in FindPlayer to avoid errors on null object 2012-02-13 22:23:01 +00:00