Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Table of Contents

...

Interface generation


Section


Column
width30%

Retrieving the database structure of a register

To generate the various end-points Burti API relies on the database structure that Standard ERP exposes via the Export/import Format report in its' Technics module.

When the report is run without specifying a register code, it will dump the database definitions of all the registers in the database. These are for example Invoices, Sales Orders, Deliveries and such.

You will need to look up the register(-s) that you wish to expose via the API in this report and then separately export these to a text file.

Example

for retrieving the database structure of a register

In this example we show how to generate an to retrieve the database structure of the Orders register to use for creating its' API end-point for the Orders register.

Step 1: Enter the keyword "Orders" in the search field of the report

Step 2: Cycling through the search results pin-point the correct register and take note of its' code (ORVc).

Step 3: Reopen to the Report Specification window using the cogwheel menu available in the upper-left hand corner of the window.

Step 4: Enter the register code (ORVc in this example) in the field labeled "Vc (View Code)", set Media to File and press Run to save the definition in a file.


Column
width70%

Image Added



Section


Column
width30%

Importing the register's database structure as an API Register Definition record

To start configuring the end-point, you need to create an API Register Definition record for it in the Burti - JSON APIĀ  module. For this you can use the database structure definition file created in the previous step.

In Burti - JSON API module open Imports and select "Export/Import Format file" and pick the file that was created in the previous step.

If all goes well, a new record should now be created in the API Register Definitions register for Orders (register code ORVc).


Column
width70%

Image Added





Read API


Write API

...