-
Notifications
You must be signed in to change notification settings - Fork 2
RestApi.Controller.Server
Alex Ander edited this page Apr 14, 2018
·
1 revision
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" } ] }
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 }