Editing
Technical:Back-end Server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Server actions === Every request in this section requires a server secret key as the <code>Authorization: Bearer ...</code> header. * <code>/server</code> ** <code>GET /</code> - Get the information about the current server. Returns a list of active user sessions, which should be cross-referenced to kick out players who were invalidated elsewhere. ** <code>POST /reset</code> - Delete all dangling sessions for this server. Should be called upon clean shutdown and/or startup. ** <code>/player</code> *** <code>POST /login</code> - Handles player login with user credentials. Issues session token. Returns user information. *** <code>POST /join/<session></code> - Handles player login with a pre-issued session token and adjusts the expiry timing on the token. Returns user information. *** <code>POST /logout/<session></code> - Handle player logout. Invalidates session token and releases any active character lock. *** <code>GET /<id>/characters</code> - Get a list of the player's characters and their outfits. *** <code>/<id>/relationships</code> **** <code>GET /</code> - List a player's relationships. Also includes pending friend requests, which the server will show only once to the recipient. **** <code>POST /</code> - Create a new relationship. This manages user blocks and friends. **** <code>PATCH /<id></code> - Update a relationship. For example when a friend request is accepted. **** <code>DELETE /<id></code> - Delete a relationship. For example when a friend is removed from either side. *** <code>/<id>/party</code> **** <code>GET /</code> - Get the party of a player. May return nothing if the player is not in a party. **** <code>POST /</code> - Create a new party. Must have at least one invited player. **** <code>PATCH /</code> - Update the party or its membership statuses. **** <code>DELETE /</code> - Delete the party. ** <code>/character</code> *** <code>POST /</code> - Create a new character, including starting inventory, statistics and outfits. *** <code>GET /<id></code> - Gets the full set of information about a player's character, including inventory, statistics and outfits. *** <code>POST /<id>/lock/<session></code> - Sets the character lock for a specific character (when player chooses the character they want to play as). *** <code>PATCH /<id></code> - Change character information. Can take up to a full set of information about a player's character. '''This is the main character persistence mechanism.''' *** <code>DELETE /<id></code> - Player deleted their character. ** <code>/moderation</code> *** <code>POST /action</code> - Create a new moderation action. *** <code>POST /report</code> - Create a new player report. * <code>GET /servers</code> - Get a public list of servers. Does not include unlisted servers. This request does not require any authorization.
Summary:
Please note that all contributions to Trotland Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Trotland Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Technical
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information