Codeit API Demo Application
Introduction
Codeit offers a powerful REST API allowing 3rd party applications to easily integrate with Codeit.
This document introduces a Demo Application which may be useful in helping you get started with the API.
Codeit API Demo Application
The demo application is very simple - it offers the following two functions:
-
Write Data to Codeit
The app will prompt you for some verbatim text and one item of context data (Age).
This data is then sent to the Codeit API and written into an existing project there.
Note that if your project is set up with AI enabled, Codeit will attempt to autocode the verbatim as it is written to the system.
-
Read Data from Codeit
The app will list out all of the coded verbatims currently in the target project along with the codes assigned to each.
The code in the project does not call the Codeit REST API directly - instead, it makes use of a wrapper library ("Codeit.API.dll") which provides a convenience layer that shields the programmer from the actual REST API.
You are, of course, completely free to make calls against the REST API if you want to, however the Codeit API Library may be more convenient and easier to program against.
Getting Started
To get started, follow these steps:
- Create a new project in Codeit for testing
- Create a Task within the project containing a source variable, target variable and "Age" context variable)
- Create a default Wave within the project
- Make a note of your API key in the Admin section of Codeit
- Download and unzip the Demo App Code
- Open the "Codeit API Demo App" solution using Visual Studio
- Use the Codeit Swagger page to lookup the relevant Id values and fill in the placeholders in "Settings.cs" in the Codeit.DemoApp.Common project
- Run the application - choose option 1 and write some data to Codeit
- View the project in Codeit using Block Coding and verify that the data has indeed been written to Codeit
- Apply some codes to the verbatim in Codeit
- In the demo application, choose Option 2 to view the coded data you just created
Future Development
If this demo application seems useful to you and you have ideas for further development, feel free to get in touch!
Downloads
You can download the source code for the demo app here