View list of phone books

Resource URI: /phonebook
Default Resource Properties
The resource is represented by the following properties when the GET request is performed:

Property

Description

Phone books

The phone book name.

Specific Response Codes: N/A
HTTP Method: GET
Retrieves a list with all the phone books saved in the database.
Example: XML format
{{<phonebooks>
<phonebook name="phonebook1"/>
<phonebook name="phonebook2"/>
</phonebooks>}}
Unsupported HTTP Methods: POST, PUT, DELETE

View phone book entries

Resource URI: /phonebook/{name}
Default Resource Properties:

Property

Description

first name

First name of the phone book entry.

last Name

Last name of the phone book entry.

number

Number associated to the phone book entry.

Specific Response Codes: N/A
HTTP Method: GET
Retrieves a list with all the phone book entries saved in the database.
Example: CSV format
"First name","Last name","Number"
Return Values: list with the names of the phone book entries
Unsupported HTTP Methods: POST, PUT, DELETE