Servers
REST API documentation for LSW Assignment HTTP server
| Name | Action | URL (example) |
|---|---|---|
| getServers() | GET | /api/servers |
| getServers(query) | GET | /api/servers?storageMin={from}&storageMax={to}&ram={ram}&hdd={hdd}&location={location} |
Response example:
{
"servers": [
{
"model": "Dell R6302x Intel Xeon E5-2650v3",
"ram": {
"memory": "128",
"unit": "GB",
"type": "DDR4"
},
"hdd": {
"memory": "120",
"count": "2",
"unit": "GB",
"type" : "SSD"
},
"location": "SingaporeSIN-11",
"price": {
"currency": "USD",
"currencySymbol": "$",
"amountCents": "55599"
}
},
...
]
}