Lucas Nicodemus
f87ff40260
Moved rest files around a bit
2011-09-05 12:09:23 -06: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
866a4c9932
Implemented RestObject to enforce status/error keys.
2011-09-05 13:59:07 -04: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
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
1fa5c7236e
All API requests now respond with a predictable template, for further troubleshooting.
2011-09-05 01:37:56 -06: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