Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 9:06 AM UTC

Using CouchDB with Uniface

Community Sample

Using CouchDB with Uniface

Author Eddy Knochs
Date submitted

 

Category Uniface Coding
Sample file

Description

Apache CouchDB uses a REST like API to store and manage documents, stored in JSON format. This sample contains one Uniface form that stores JSON documents (obtained from an internet jokes site) into a CouchDB server, and allows retrieval of these documents and the updating of these documents via CouchDB views. Prerequisites are Uniface 9.6.06, internet access (to download CouchDB and to subsequently obtain jokes), and the installation of CouchDB on a local server (localhost is the default). Doumentation on the sample includes a PDF document (including how to create the CouchDB views) , and various comments within the form source code. The Uniface scripting within this form shows extensive use of the UHTTP internal component to perform RESTful web services call-outs, and extensive use of Structs to transform JSON to Uniface component data structures.