Add server details modification endpoint to API.

This commit is contained in:
Dane Everitt
2018-01-20 16:03:23 -06:00
parent 3e327b8b0e
commit 17f6f3eeb6
7 changed files with 160 additions and 267 deletions

View File

@@ -80,7 +80,7 @@ class Server extends Model implements CleansAttributes, ValidableContract
*/
protected static $dataIntegrityRules = [
'owner_id' => 'exists:users,id',
'name' => 'regex:/^([\w .-]{1,200})$/',
'name' => 'string|min:1|max:255',
'node_id' => 'exists:nodes,id',
'description' => 'string',
'memory' => 'numeric|min:0',