DFws API User Guide

Release 5.1.0

All rights reserved. No part of this publication may be re-transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of DF/Net Research, Inc.. Permission is granted for internal re-distribution of this publication by the license holder and their employees for internal use only, provided that the copyright notices and this permission notice appear in all copies.

The information in this document is furnished for informational use only and is subject to change without notice. DF/Net Research, Inc. assumes no responsibility or liability for any errors or inaccuracies in this document or for any omissions from it.

All products or services mentioned in this document are covered by the trademarks, service marks, or product names as designated by the companies who market those products.

Feb 01, 2019


This guide describes the DFdiscover application programming interface, commonly known as the DFws API, or simply DFws.

The DFdiscover API is a programming resource for users who would like to extend DFdiscover or build connectors from other environments to DFdiscover. Use or understanding of the DFws is not required for successful use of DFdiscover. Most users will never use DFws. This guide is intended for programmers.

Table of Contents

1. Getting Help
2. DFdiscover Mailing List
3. Conventions
1. Introduction
1.1. What is DFws?
1.2. How does it work?
1.3. How can we use it?
2. Quick Start with DFws
2.1. Just the Essentials
2.2. PHP Example
3. Developing with DFws
3.1. Prerequisites
3.2. API Client Account
3.3. DFdiscover and DFws API
3.3.1. Sessions
3.4. Getting Started
3.4.1. Authorize request
3.4.2. Subsequent Requests
3.4.3. Logout Request
3.5. Status Codes
3.5.1. Errors
3.6. JWT Code Samples
3.7. Details of all supported API endpoints
3.7.1. Session Management
3.7.2. Study Setup
3.8. Study Data
3.8.1. Subject list
3.8.2. Keys for Subject
3.8.3. Keys Available by Site
3.8.4. Status for keys
3.8.5. Database Records by filter
3.8.6. Database record by keys
3.8.7. Database record by name
3.8.8. Unlock
3.8.9. Lock
3.8.10. Add/Update Record
3.9. Document Management
3.9.1. Get Document
3.9.2. Add Document
3.10. User / Permission / Role Management
3.10.1. User Profile
3.10.2. Change Password
3.10.3. User Account
3.10.4. User Roles
3.10.5. Study Roles
3.10.6. Role Permissions
3.11. Metrics
3.11.1. License Metrics
3.11.2. Feature Metrics
4. Administering DFws
4.1. Installing DFws
4.2. Configuration File (dfws.cf)
4.3. DFws System Database (dfws.db)
4.3.1. DF_DEVELOPERS (Table Definition)
4.3.2. DF_LOG (Table Definition)
4.4. Starting and Stopping DFws
4.5. Monitoring DFws Activities
4.5.1. Using DFwsadmin
4.5.2. API Client Account Management
4.5.3. Log Management
4.5.4. System Status
A. Copyrights - Acknowledgments
A.1. External Software Copyrights
A.1.1. DCMTK software package
A.1.2. Jansson License
A.1.3. HylaFAX Facsimile Software
A.1.4. Mimencode
A.1.5. RSA Data Security, Inc., MD5 message-digest algorithm
A.1.6. mpack/munpack
A.1.7. TIFF
A.1.8. PostgreSQL
A.1.9. OpenSSL License
A.1.10. Original SSLeay License
A.1.11. gawk
A.1.12. Ghostscript
A.1.13. MariaDB and FreeTDS
A.1.14. QtAV
A.1.15. FFmpeg
A.1.16. c3.js
A.1.17. d3.js