Versions Compared

Key

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

...

To make another network go to menu: Manage -> Fields -> Create Field. 

Image RemovedImage Added

Image Removed

 Image Added



View Field Details

...

You will see a list of fields. You can view a field by clicking on the blue view icon. You can also edit or delete your fields.

Image Removed

 Image Added


Database Schema

The schema for the database is below. It can also be found in the application if the user has database::read permission by going to menu: Manage -> Database -> List, then clicking on the "Fields" table.

Code Block
languagetext
themeEclipselanguagetext
CREATE TABLE `fields` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `org_id` int(10) unsigned NOT NULL DEFAULT '1',
  `group_id` int(10) unsigned NOT NULL DEFAULT '1',
  `type` enum('varchar','list') NOT NULL DEFAULT 'varchar',
  `values` text NOT NULL,
  `placement` enum('custom','system') NOT NULL DEFAULT 'system',
  `edited_by` varchar(200) NOT NULL DEFAULT '',
  `edited_date` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

...

Field are stored in the database in the "fields" table. A typical entry will look as below.

Code Block
languagetext
themeEclipselanguagetext
         id: 1
       name: Ink Type
     org_id: 2
   group_id: 8
       type: varchar
     values: 
  placement: custom
  edited_by: Administrator
edited_date: 2017-05-22 00:26:38

...

You can access the /fields collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see the API documentation for further details.

API Routes

Request Method
ID
Action
Resulting Function
URL Example
Notes
Example Response
GETn
 

collection/fieldsReturns a list of fields.fields_collection.json
GETy
 

read/fields/{id}Returns a field's details.fields_read.json
PATCHy
 

update/fields/{id}Update an attribute of a fields entry.fields_patch.json
POSTn
 

create/fieldsInsert a new fields entry.fields_create.json
DELETEy
 

delete/fields/{id}Delete a fields entry.fields_delete.json

Web Application Routes

Request Method
ID
Action
Resulting Function
URL Example
Notes
GETncreatecreate_form/fields/createDisplays a standard web form for submission to POST /fields.
GETyupdateupdate_form/fields/{id}/updateShow the connection's details with the option to update attributes using PATCH to /fields/{id}

 

 

 

 

 

...