Appendix B: Customization
Multi-Tech Systems, Inc. FF240-IP Admin User Guide 100
Retrieving User Information
HTTP Request line:
GET /ffws/v1/users/USERNAME HTTP/1.1
HTTP Response Status Codes:
200 OK
Success
403 Forbidden
Authenticated user does not have permission to view data associated with
username.
404 Not Found
No user found with that username.
Example:
GET /ffws/v1/users/admin HTTP/1.1
content-type: application/xml
authorization: Basic YWRtaW46YWRtaW4=
-----------------------------------
HTTP/1.1 200 OK
content-type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<response>
<message>Success</message>
<user>
<user_url>https://192.168.2.1/ffws/v1/users/admin</user_url>
<name>Administrator</name>
<username>admin</username>
<email_address>admin@example.com</email_address>
<phone_number>111-222-3333</phone_number>
<fax_number>111-222-3334</fax_number>
<organization>Example Org</organization>
</user>
</response>