Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.

Controller.Server

Alex Ander edited this page Jan 25, 2018 · 2 revisions

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