Commit graph

1082 commits

Author SHA1 Message Date
high
07e88dc8a7 SafeSet/SafeGet replaced with this[] 2011-09-05 14:12:49 -04:00
high
1cfca90b8d Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 14:05:33 -04:00
high
a0da52e558 Removed error constructor. Added response property. 2011-09-05 14:05:16 -04:00
Lucas Nicodemus
6090b26459 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 12:01:50 -06:00
Lucas Nicodemus
797bc90269 Refactor 2011-09-05 12:01:36 -06:00
high
89f5d13efb Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 13:59:18 -04:00
high
866a4c9932 Implemented RestObject to enforce status/error keys. 2011-09-05 13:59:07 -04:00
Lucas Nicodemus
cc60099091 STOP RETURNING "Error" and an error message people! You need an HTTP status code on EVERY response, preferably the FIRST response. All API result keys should be LOWER case! 2011-09-05 11:33:33 -06:00
Graham Cantin
c97ff36b73 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 06:25:03 -07:00
Graham Cantin
11a3ed7647 REST: Really shitty protection from nulls due to all parameters being optional in some cases. But it works, until someone can clean it up and i learn how to know better. 2011-09-05 06:24:07 -07:00
Deathmax
4162776972 Placed world methods into their own region 2011-09-05 20:43:50 +08:00
Deathmax
b0e27985b6 Added /world/meteor
Added /world/bloodmoon/{bool}
2011-09-05 20:41:05 +08:00
Deathmax
04b9fef4d1 Added /world/read 2011-09-05 20:27:05 +08:00
Graham Cantin
afff00b502 REST: ban creation, lookup by name or ip for ban info/delete
REST: There are no methods in banmanager to update bans, Update skipped.
2011-09-05 05:15:08 -07:00
Graham Cantin
34136cf3d5 Added ban info and destroy to RestManager.cs 2011-09-05 04:11:10 -07:00
Lucas Nicodemus
dc6ef8e059 Added /lists/players API endpoint. 2011-09-05 04:31:31 -06:00
Lucas Nicodemus
06462af4aa Test complete 2011-09-05 03:56:08 -06:00
Lucas Nicodemus
81e605872d test 2011-09-05 03:55:38 -06:00
Lucas Nicodemus
34b3252a31 Added /users/update/{user} endpoint 2011-09-05 03:54:24 -06:00
Lucas Nicodemus
017bbbca89 Fixed some wrong class names. 2011-09-05 03:32:42 -06:00
Lucas Nicodemus
a90c4e85a1 Added /users/update/{user} with params:
- password (should be sha512) (this should really be improved, but currently its all we've got)
 - group
Refactored a lot of the return blocks to fit coding style.
2011-09-05 03:31:40 -06:00
Lucas Nicodemus
82be1eee1a Added /users/{user}/info endpoint.
Added /users/{user}/destroy endpoint.
Really added endpoint.
2011-09-05 02:56:37 -06:00
Lucas Nicodemus
5192c07d6d Added endpoint /token/destroy/{token} 2011-09-05 02:31:37 -06:00
Lucas Nicodemus
17683eaeaa API now checks user credentials before granting tokens.
Added new permission - 'api' that allows the group access to using the API.
2011-09-05 02:12:36 -06:00
Lucas Nicodemus
839ce793c7 Examples no longer require tokens 2011-09-05 01:42:37 -06:00
Lucas Nicodemus
3e961b32ab Removed dumb outputs that don't work. 2011-09-05 01:39:40 -06:00
Lucas Nicodemus
1fa5c7236e All API requests now respond with a predictable template, for further troubleshooting. 2011-09-05 01:37:56 -06:00
Lucas Nicodemus
e4030d9e38 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest
Conflicts:
	TShockAPI/RestManager.cs
Fixed /status returning a 500
2011-09-05 01:03:20 -06:00
high
60462dddfc request parameter was removed 2011-09-05 02:46:22 -04:00
high
c761486aa0 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest 2011-09-05 02:45:19 -04:00
high
1fe7284f7c Added SecureRest which implements token requirement for commands. Still must implement a Verify function and probably change SecureRest around a bit. 2011-09-05 02:44:46 -04:00
Lucas Nicodemus
92d940e5dc Added startup/shutdown messages to Rest, for troubleshooting bad configuration settings.
Added server nickname configuration option, to be returned in the /status API endpoint
Added configuration option for disabling the /check API endpoint in the event that users don't like that.
Added /status API endpoint
2011-09-05 00:30:46 -06:00
Lucas Nicodemus
319f369799 Added example for how all additional endpoints should respond in regards to success and failure.
Added example endpoint that demonstrates rest verbs.
2011-09-04 23:59:44 -06:00
high
332fe805a9 != should be == 2011-09-05 01:44:46 -04:00
high
7cfc219794 RestApi back to Rest, added separate RestManager field. 2011-09-05 01:17:54 -04:00
high
595efa4d41 Merge branch 'general-devel-rest' of github.com:TShock/TShock into general-devel-rest
Conflicts:
	TShockAPI/TShock.cs
2011-09-05 01:14:24 -04:00
high
f087ae5c83 IP/Port can now be changed before started.
RestVerbs added instead of Dictionary<string,string>
2011-09-05 01:11:08 -04:00
Lucas Nicodemus
d7012bd094 Reworked a lot of how REST works 2011-09-04 23:06:43 -06:00
high
d824e71507 Added rest {verb} support 2011-09-05 00:48:05 -04:00
high
fea3be69f5 Fixed serializing wrong object.
Error is now serialized too.
2011-09-05 00:02:01 -04:00
high
e9c3363313 Now instead outputs json serialized objects. 2011-09-04 23:50:35 -04:00
high
59a2fcd62e Added Rest example 2011-09-04 23:43:39 -04:00
Lucas Nicodemus
a14299ee32 Fixing RCOn 2011-09-04 20:20:52 -06:00
Lucas Nicodemus
5939c3256a Enabled RCON. 2011-09-04 17:05:01 -06:00
high
7b23669e2f Do not enable RconHandler unless you fix it up. Remember, general-devel is not for incomplete features.
Also you were late on that PostInit fix.

Revert "RCONNNNNN"

This reverts commit 10167df4ef.
2011-09-04 11:50:18 -04:00
Lucas Nicodemus
ceec0be924 Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-09-03 22:38:09 -06:00
Lucas Nicodemus
10167df4ef RCONNNNNN 2011-09-03 22:37:47 -06:00
darkunderdog
4a1f944caf Added /sendwarp command - You are now able to send people to a specific warp. 2011-09-03 20:03:23 -05:00
high
920fabaa7e Fixed TSDEV-117
Conflicts:

	TShockAPI/Properties/AssemblyInfo.cs
2011-09-03 15:16:36 -04:00
Lucas Nicodemus
c31eeb1c6c VERSION TICK 3.3
Preparing to launch, need to merge to master.
2011-09-03 00:24:25 -06:00