Versions Compared

Key

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

...

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

 

 

 

Database Schema
 

Code Block
themeEclipse
languagetext
Create Table: CREATE TABLE `networks` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `network` varchar(200) NOT NULL DEFAULT '',
  `org_id` int(10) unsigned NOT NULL DEFAULT '1',
  `description` 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 AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

Example Database Entry

Credentials are Networks are stored in the database in the "networks" table. A typical entry will look as below.

NOTE - org_id is not used at present.

Code Block
themeEclipse
languagetext
         id: 3
       name: 192.168.1.0/24
    network: 192.168.1.0/24
     org_id: 1
description: Auto inserted local server subnet
  edited_by: Administrator
edited_date: 2017-05-29 10:47:33

...

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

 

 

 

 

 

...