-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API #97
Comments
Regarding Thoughts on having GET requests be parameterized, a la |
Server ID is currently the Although that brings up a good point about how that ID will look with URL encoding.
Had planned for querystring to pop up at some point for additional filtering. I think it's probably cleaner to support it for all filtering including game and mod like your example - makes bookmarking easier. Then have the addition of the hierarchical method I'll update the initial issue comment later with some more fleshed out ideas. |
I'm thinking about the end user utilizing the API, as a broad, sweeping "get me all the servers and their info" or a focused "I only care about this server" type queries. Q2Pro currently runs this query and parses the JSON output to format the server list specifically for the |
I've updated the initial issue with added detail about requests, query strings, and responses. You're right that the majority of use would be just "get me all the servers" . Main reason for having things more nuanced would be for web browser access or if someone feels like writing a mobile app for it in the future. Not necessary for the bulk of initial traffic though. |
API
Initial Web interface/API specification
Endpoints
Servers
/servers
GET
/servers?game=<game>
GET
<game>
running any mod/servers?game=<game>?mod=<mod>
GET
<game>
running<mod>
/servers/<game>
GET
<game>
running any mod/servers/<game>/<mod>
GET
<game>
running<mod>
/server/<server id>
GET
<server id>
Games
/games
GET
Players
/players/<server id>
GET
<server id>
if server is active/players/<game>
GET
<game>
serversNotes
JSON Filtering
Fast API
The text was updated successfully, but these errors were encountered: