/

Get all servers

get

Fetch all servers

Responses
200Success
application/json
get
/servers/
GET /v1/servers/ HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "createdAt": "text",
    "serverName": "text",
    "serverIp": "text",
    "machineId": "text",
    "nicIds": [
      {
        "id": "text",
        "createdAt": "text",
        "nicName": "text",
        "serverId": "123e4567-e89b-12d3-a456-426614174000"
      }
    ]
  }
]

Create a new server

post

Create a new server with the given details

Body

Create a new server with the given details

serverNamestringRequired
serverIpstringRequired
machineIdstringRequired
nicIdsstring[]Required
Responses
200Success
application/json
post
/servers/
POST /v1/servers/ HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 76

{
  "serverName": "text",
  "serverIp": "text",
  "machineId": "text",
  "nicIds": [
    "text"
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "text",
  "serverName": "text",
  "serverIp": "text",
  "machineId": "text",
  "nicIds": [
    {
      "id": "text",
      "createdAt": "text",
      "nicName": "text",
      "serverId": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}