(1) User Access(layers) (2) RESTful API info -Amason Web Services -Controller/model/view architecture -Testing & Error Codes (3) Data Structure for tables (4) Data validation (5) Data Storage format (6) Git branching
php artisan serve --port=7000
- Clone repository to you computer
- Change Directory into ipam-backend and open it in Sublime, or editor of choice
-
$ psql postgres
$ CREATE USER ipam_back WITH PASSWORD 'ipam_back';
;$ CREATE DATABASE ipam_back -O ipam_back ;
;- Set up database connections.
- Open .env.example and copy it's contents.
- In the terminal create .env file,
$ touch .env
- Open in .env in sublime and paste contents.
- Configure the following fields as follows:
-
DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=ipam_back DB_USERNAME=ipam_back DB_PASSWORD=ipam_back
- Install dependencies via composer
$ composer update
- Generate APP_KEY by typing
$ php artisan key:generate
$ npm install
to install dependencies from package.json$ php artisan migrate
- to create the tables in our database$ php artisan db:seed
- seeds the tables in our database
sites/
- (GET) returns all of the site information for dashboard viewsites/{sites}
- (GET) returns detailed information for a specific sitesites/
- (POST) adds a site to the databasesites/{sites}
- (PUT) edits a specific site in the databasesites/{sites}
- (DELETE) removes a specific site from the database
subnets/
- (GET) returns all of the subnet information for dashboard viewsubnets/{subnets}
- (GET) returns detailed information for a specific subnetsubnets/
- (POST) adds a subnet to the databasesubnets/{subnets}
- (PUT) edits a specific subnet in the databasesubnets/{subnets}
- (DELETE) removes a specific subnet from the database
equipment/
- (GET) returns all of the equipment information for dashboard viewequipment/{equipment}
- (GET) returns detailed information for the specific equipmentequipment/
- (POST) adds a equipment to the databaseequipment/{equipment}
- (PUT) edits a specific equipment in the databaseequipment/{equipment}
- (DELETE) removes a specific equipment from the database
-
ip/
- (GET) returns all ip addresses currently being used on this network -
ip/{subnet_id}/next
- (GET) returns the next available ip address in the specified subnet -
ip/{subnet_id}/check/{new_ip_address}
- (GET) returns TRUE if the new ip address entered is available, FALSE if it is not -
ip/{subnet_id}
- (GET) returns all ip addresses currently in use within the specified subnet -
'equipment_types' - (GET) returns both id and name columns from equipment types table
- sorted in descending order by created_at column
- returns text, user_id, and last_updated;