Server

透過伺服器ID獲取您發布的特定伺服器

GET
/servers/{server_id}
AuthorizationBearer <token>

In: header

Path Parameters

server_idstring

The unique ID of the server

Response Body

curl -X GET "https://www.dchubs.org/api/v1/user/servers/string"
{
  "server": {
    "id": "string",
    "name": "string",
    "icon": "string",
    "description": "string",
    "longDescription": "string",
    "inviteUrl": "string",
    "verified": true,
    "members": 0,
    "online": 0,
    "upvotes": 0,
    "tags": [
      "string"
    ],
    "banner": "string",
    "website": "string",
    "featured": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "rules": [
      "string"
    ],
    "features": [
      "string"
    ],
    "screenshots": [
      "string"
    ],
    "pin": true,
    "pinExpiry": "2019-08-24T14:15:22Z",
    "owner": {
      "id": "string",
      "username": "string",
      "avatar": "string"
    },
    "admins": [
      {
        "id": "string",
        "username": "string",
        "avatar": "string"
      }
    ],
    "favoritedBy": [
      "string"
    ]
  }
}
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "instance": "string"
}
{
  "error": "string",
  "code": "string",
  "timestamp": "string"
}
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "instance": "string"
}
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "instance": "string"
}