You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Introduction

The Applications endpoint allows you to define an application which you can then associate to a device (or devices).

Applications are an Enterprise only feature.

Applications are being introduced in Open-AudIT 2.2 with a view to expand on the concept as further development is made.

How Does it Work?

You can define an application and associate a device to this application. A device may be associated to more than one application. An application may be associated to more than one device.

Creating an Applications Entry

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 "+" button.

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


View Applications Details

Go to menu: Manage-> Applications -> List Applications.

You will see a list of applications. You can view an application by clicking on the blue view icon. You can also edit or delete Applications.

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: Admin -> Database -> List Tables, then clicking on the "attributes" table.

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.

         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}



  • No labels