API endpoints on server?
Is there an easy way to build API endpoints on the server into a plugin? Similar to how RustIO creates endpoints for fetching the map, players, items, etc from the server...
You'd neee to look into web sockets. There aren't any "endpoints" natively, only RCON and what extensions like Rust:IO create.
How does RustIO do it? Would it be difficult to do? I've created and modified plenty of plugins but I've never looked into extensions.
Rust:IO create web socket endpoints on the server using its extension.

Yes, for streaming the player and NPC positions, it does appear to open a websocket connection. However, it also long-polls various endpoints using XHR requests which return JSON for the config, language, loot, buildings, recent players, and death locations...

I'm currently working with PHP, which isn't exactly the best when it comes to dealing with WebSockets; so I'd like to implement what I'm doing using a few simple endpoints.