HTTP API
Opened this issue · 3 comments
Extend the HTTP server to a proper API to provide extra functionality.
Features
Stats
- Online user count
- Total user count (accounts)
- Total Character count
- uptime
- connections
Logs
All API requests should be logged.
Other
Perhaps rate limited?
Should be secured with basic auth as well as allowed ip's.
User accounts
- list
- add/register
- remove
- edit
- ban
- resetPassword
Items
- list
- add
- remove
- edit
Mobs
- list
- add
- remove
- edit
NPC's
- list
- add
- remove
- edit
Dropfiles
Identify items that drop with mobs
Identify items that aren't in drop files (perhaps exclude special items?)
Allow you to search for items and show where dropped or otherwise available.
Commands
Probably all of the GM commands could be added.
eg: reload NPC's, announcements
This would allow development and separation of management apps/mobile apps too. The server could be then re-compiled to be a console app capable of being platform independent. See Petes branch here for that work.
JSON submitted & returned. Let's make this as standard as possible.
Thought: Can we control characters through the API be sending clientpacket data? This could be a way of creating bot players etc.