Commit graph

191 commits

Author SHA1 Message Date
Lucas Nicodemus
264e633202 TSHOCKPLUGINS-2 #resolve #comment Added. 2012-01-03 15:29:36 -07:00
Lucas Nicodemus
5d61a56fcd Add new REST endpoint:
- /v2/token/password?username={user}

TSHOCKPLUGINS-1 #resolve #time 5m #comment Deprecating old token create syntax, new endpoint added as a replacement.
2012-01-03 15:18:05 -07:00
Lucas Nicodemus
d8e92e5ed0 Fixed 'shank forgot how to assign variables to an array' error on several rest calls. 2012-01-02 22:52:23 -07:00
Lucas Nicodemus
e8acdb0b96 Fixing some silly mistakes. 2012-01-02 22:39:04 -07:00
Lucas Nicodemus
be29a2cfcf Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2012-01-02 22:15:08 -07:00
Lucas Nicodemus
b8e4dffd74 Add new REST endpoint:
- /v2/server/rawcmd

Takes parameters:
 - cmd

Commands have to start with /, some commands aren't written properly, and may not return any more output than a status code.
2012-01-02 22:14:30 -07:00
Zack Piispanen
f82f05064a Added stack count to /v2/player/read 2012-01-02 16:42:55 -05:00
Lucas Nicodemus
f04b9d7a6d Remove test commit 2012-01-02 02:12:45 -07:00
Lucas Nicodemus
a7cc75082e Test commit 2012-01-02 02:11:49 -07:00
Lucas Nicodemus
4f07567eeb Add REST endpoints:
- /v2/players/mute
 - /v2/players/unmute
2012-01-02 02:07:19 -07:00
Lucas Nicodemus
e813ac8f87 Fix /v2/players/ban using verb instead of param (thanks @radishes) 2012-01-02 01:49:01 -07:00
Lucas Nicodemus
b9df823f41 Add the /v2/server/off endpoint 2012-01-02 00:57:03 -07:00
Lucas Nicodemus
0498d30b4e Add /v2/server/broadcast REST endpoint 2012-01-02 00:47:00 -07:00
Lucas Nicodemus
932dc9109c Added new REST endpoint:
- /v2/world/butcher
2012-01-02 00:33:27 -07:00
Lucas Nicodemus
f71d2c1a64 Add REST endpoint:
- /v2/players/kill
2012-01-02 00:13:26 -07:00
Lucas Nicodemus
62bc28332a Deprecating the following REST endpoints:
- /bans/read/{user}/info
 - /bans/destroy/{user}
 - /users/read/{user}/info
 - /users/destroy/{user}
 - /users/update/{user}

Adding replacement endpoints:
 - /v2/users/read
 - /v2/users/destroy
 - /v2/users/update
 - /v2/bans/read
 - /v2/bans/destroy
2012-01-01 16:44:45 -07:00
Lucas Nicodemus
3261fa40ef Deprecating the following REST API endpoints:
- /players/read/{player}
 - /players/{player}/kick
 - /players/{player}/ban

Adding the following REST API endpoints:
 - /v2/players/kick
 - /v2/players/ban
 - /v2/players/read
2012-01-01 16:25:24 -07:00
Lucas Nicodemus
640da9eefe Several REST endpoints that were incorrectly waiting on player parameters and 500ing without them now work as intended with the verb. 2012-01-01 16:14:59 -07:00
Lucas Nicodemus
bfc9ad98fb Fixed the REST kick endpoint expecting a player parameter as opposed to a verb 2012-01-01 15:55:48 -07:00
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Lucas Nicodemus
eea309281a Added a disabled RestRequestEvent hook 2012-01-01 02:30:49 -07:00
Lucas Nicodemus
4d5a0ed728 Added new REST function - /users/activelist - Gets the list of active, logged in user accounts, not player/character names. 2011-12-30 19:29:58 -07:00
Lucas Nicodemus
c6abbfe4d2 ReSharper code reformat to match naming conventions and stuff 2011-12-30 14:38:04 -07:00
Lucas Nicodemus
1147788154 ReSharper redundant code cleanup 2011-12-30 14:32:05 -07:00
Zidonuke
34efba9c1f Changed hack detection to allow future permissions overrides, now prevents hack clients modding max hp while online. 2011-12-28 21:03:29 -05:00
Lucas Nicodemus
8514140ca7 As per High's complaining, holocaust against the Tools class (now Utils)
Plugin developers: You really need to change to reference this.
2011-12-01 23:24:02 -07:00
high
a5550ad3f7 Fixed typo 2011-09-25 18:34:28 -04:00
Deathmax
cf1f283199 Add /players/{player}/ban 2011-09-17 11:45:18 +08:00
Deathmax
7a2ae6dbf9 Add /players/{player}/kick 2011-09-17 11:41:22 +08:00
Deathmax
e258f54212 Add /player/read/{player} 2011-09-16 22:36:36 +08:00
Deathmax
32f59e51c7 Change /world/read to use object instead of string
Removes .ToString's
2011-09-16 22:13:29 +08:00
high
81797667e9 Changed RestObject dictionary value to object so you can add things besides strings. 2011-09-06 01:23:49 -04:00
high
da91d56513 Fixed geoip crashing on startup if geoip.dat is missing. Also fixed it crashing if you enable it without restarting tshock. 2011-09-05 22:07:51 -04:00
high
bedfc060e2 Changed Status/UserList to use linq and RestObject instead. 2011-09-05 21:52:41 -04:00
Lucas Nicodemus
ddd7329fbf Removed trailing commas from the lists of users 2011-09-05 19:36:44 -06:00
high
310c1b2fbf Fixed rest Dispose(bool) 2011-09-05 15:27:42 -04:00
high
7ae6910853 Endpoint registering '/ep' will no longer match '/ep/x'.
Trailing slashes removed. So '/ep/' will become '/ep'.
2011-09-05 15:06:08 -04:00
high
f949738db9 Added config options for RestApi
-IP now changes RestApi listening ip.
2011-09-05 14:33:37 -04:00
high
4b694c0c31 Moved classes out of Rest.cs into their own files. 2011-09-05 14:15:46 -04:00
high
b7fd7f1953 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 14:12:59 -04:00
Lucas Nicodemus
f87ff40260 Moved rest files around a bit 2011-09-05 12:09:23 -06:00