Skip to content

RestApi.Controller.Server

Alex Ander edited this page Apr 14, 2018 · 1 revision

Available actions


GetServers

Returns json data about a available WebSocket servers.

  • URL

    /api/server

  • Method:

    GET

  • Response:

    Content: { data: [ { id: 1, address: "ws://localhost:8181", code: "initial", name: "Initial Server" }, { id: 2, address: "ws://localhost:8118", code: "elite", name: "Elite Crew" } ] }


GetServer

Returns json data about a WebSocket server.

  • URL

    /api/server/{code}

  • Method:

    GET

  • URL Params

    code=[string]

  • Success Response:

    Content: { data: { id: 2, address: "ws://localhost:8118", code: "elite", name: "Elite Crew" } }

  • Error Response:

    Content: { data: null }


Clone this wiki locally