Name | Type | Read-only | Mandatory | Comment |
|---|---|---|---|---|
| id | integer | yes | no | |
| number | string | no | yes | |
| extension | string | no | no | |
| phoneType | string | no | yes | One of: Home, Office, Cell, Fax |
Uri | Method | Request Data | Success Response Code | Description |
|---|---|---|---|---|
| /api/phones | GET | 200 | Returns an Array of all Phones | |
| /api/phones/{id} | GET | 200 | Returns one Phone | |
| /api/phones | POST | Phone | 201 | Create new Phone |
| /api/phones/{id} | PUT | Phone | 204 | Update an existing Phone |
| /api/phones/{id} | DELETE | 200 | Delete a Phone |