Versions Compared

Key

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

...

An attribute entry can be created using the web interface if the current user logged in has a role that contains the applications::create permission. Go to menu: Manage -> Applications -> Create Applications. Also can be created from the Applications View, using the "Create+" button.

To add a new value for an attributes you need to select an organization, and provide a name.

Image RemovedImage Added

 


View Applications Details

...

Database Schema

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

No Format
CREATE TABLE `applications` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL DEFAULT '',
`org_id` int(10) unsigned NOT NULL DEFAULT '1',
`description` text NOT NULL,
`options` text NOT NULL,
`edited_by` varchar(200) NOT NULL DEFAULT '',
`edited_date` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

A typical entry looks as below.

No Format
         id: 1
       name: Corporate Email
     org_id: 1
description: Our email services
  edited_by: system
edited_date: 2000-01-01 00:00:00

API / Web Access

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

Access is provided as part of a roles permissions. Applications is a standard resource and can have create, read, update and delete permissions.

The API routes below are usable from both a JSON Restful API and the web interface.

API Routes

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

collectionapplications::read/applicationsReturns a list of applications.
 

POSTn
 

createapplications::create/applicationsInsert a new applications entry.
 

GETy
 

readapplications::read/applications/{id}Returns an applications details.
 

PATCHy
 

updateapplications::update/applications/{id}Update the details of an applications entry.
 

DELETEy
 

deleteapplications::delete/applications/{id}Delete an applications entry.
 

Web Application Routes

 


Request Method
ID
Action
Resulting Function
Permission Required
URL Example
Notes
GETncreatecreate_formapplications::create/applications/createDisplays a standard web form for submission to POST /attributes.
GETyupdateupdate_formapplications::update/applications/{id}/updateShow the attributes details with the option to update details using PATCH to /applications/{id}