Rust game server extension to provide JSON Web API. It will made possible to grant access with permissions to particular plugins methods or to execute any hooks via web request.
With this Web API anyone can create own external applications (web, mobile, etc.) and use server plugins to retrieve/send any information from/to game server.
Why not use RCON? Cause it's easier to call and RustApi can provide limited access to server (RCON provide only full access).
Testing and improvement.
- Download latest version
- Copy
Oxide.Ext.RustApi.dll
file to\server\RustDedicated_Data\Managed\Oxide.Ext.RustApi.dll
- Run game server
After server have been started, you can find new configuration files here:
\server\oxide\rust-api.config.json
and \server\oxide\rust-api.users.json
Configuration file is serialized to JSON RustApiOption and ApiUserInfo objects (you can investigate it, there are summaries for all properties).
Read more about configuration file.
- RustApi.ClientNet - .NET Standard 2.0
It is quite easy to connect, so you can implement your own solution. Read more about how to do it.
Just add [ApiCommand(name, permission, ...)]
attribute to your plugin methods.
Read more about api commands.
api.help
- list of available console api commandsapi.reload
- Reload extenstion configuration from fileapi.reload_users
- Reload extenstion users from fileapi.version
- Installed version of RustApi extensionapi.commands
- Cached API commands
API service provide authorization of users via Steam Login page
.
New players will be registerd as regular user with Steam ID
as name and random secret value.
Read more information about Steam authorization.
Feel free to write them in issues, and we will think about it together (;