diff --git a/dist/js/controllers/analyzer.endpoints.js b/dist/js/controllers/analyzer.endpoints.js index 48b8479154b540e98496ba2281bd39921f208aca..ce3c94ccfd8fb91ed58e36654d5eeae9cf0b9879 100644 --- a/dist/js/controllers/analyzer.endpoints.js +++ b/dist/js/controllers/analyzer.endpoints.js @@ -1,3 +1,89 @@ app.controller('analyzer.endpoints', ['$scope', 'analyzerNav', function ($scope, analyzerNav) { analyzerNav.navSelected = "endpoints"; + + $scope.datapoints = [ + { + "key": "educationMax", + "description": "Highest level of education completed", + "type": "discrete", + "required": true, + "states": ["none", "High School", "Associates", "Bachlors", "Masters", "PhD"] + }, + { + "key": "personalIncome", + "description": "Individual's average income per year", + "type": "number", + "required": true, + "rangeMin": 0, + }, + { + "key": "householdIncome", + "description": "Household's average income per year", + "type": "number", + "required": true, + "rangeMin": 0, + }, + { + "key": "race", + "description" : "The race the individual identifies with", + "type": "discrete", + "states": ["Caucasion", "African", "Hispanic", "Native American", "Other"] + }, + { + "key": "sex", + "description" : "Self-identified sex of the individual", + "type": "discrete", + "required": true, + "states": ["male", "female", "intersexed"] + }, + { + "key": "politicalParty", + "description": "Registered political party affiliation", + "type": "discrete", + "required": true, + "states": ["Democrat", "republican", "Libertarian", "Independent", "Other"] + }, + { + "key": "birthYear", + "description": "The year the individual was born", + "type": "number", + "required": true, + "rangeMax": 2015 + }, + { + "key": "profession", + "description": "Primary field of employment", + "type": "discrete", + "required": true, + "states": ["Health Care", "Science", "Information Technology", "Service Industry", "Other"] + }, + { + "key": "countryOfResidency", + "description": "Country the individual spends most of their time per year", + "type": "discrete", + "required": true, + "states": ["United Stated of America", "Canada", "Mexico", "Other"] + }, + { + "key": "childrenCount", + "description": "Number of children the individual has as a dependency", + "type": "number", + "required": true, + "rangeMin": 0, + }, + { + "key": "maritalStatus", + "description": "The individuals current relationship status", + "type": "discrete", + "required": true, + "states": ["Single", "Married", "Seperated", "Widowed", "In relationship"] + }, + { + "key": "citizenship", + "description": "Indicates the individuals citizenship status", + "type": "discrete", + "required": true, + "states": ["Citizen", "Green Card Holder", "Visa Holder", "Other"] + } + ]; }]); diff --git a/dist/views/analyzer.endpoints.html b/dist/views/analyzer.endpoints.html index 7e610e367677300b06c37661aa715687a202d9f8..d0b687abc844d8e2f78526053c0fc25d9ca0fbd5 100644 --- a/dist/views/analyzer.endpoints.html +++ b/dist/views/analyzer.endpoints.html @@ -1 +1,38 @@ -Endpoints place holder! +<div style="border: 1px solid #d0d0d0; border-radius: 5px; border-collapse: separate;background-color: #f5f5f5;"> + <div style="padding: 10px;"> + <h1>Datapoint receiver</h1> + </div> + <div style="background-color: #ffffff; padding: 10px;"> + <div><span style="border: 2px solid #d0d0d0; padding: 2px 7px; border-radius: 4px;">POST</span> https://aide.syncleus.com/robotek/customers/receiver</div> + <hr/> + Request parameters + <table> + <tbody> + <tr ng-repeat-start="datapoint in datapoints"> + <td><i class="fa fa-circle" style="color: #bbbbbb; padding-right: 10px; padding-top: 10px;"></i></td> + <td style="padding-right: 10px; padding-top: 10px;">{{datapoint.key}}</td> + <td style="padding-right: 10px; padding-top: 10px;">{{datapoint.type}}</td> + <td style="padding-top: 10px;">{{datapoint.description}}</td> + </tr> + <tr ng-repeat-end=""> + <td colspan="3"></td> + <td ng-if="datapoint.type == 'number'"><span ng-if="datapoint.rangeMin != null">{{datapoint.rangeMin}}</span><span ng-if="datapoint.rangeMin == null">-∞</span> to <span ng-if="datapoint.rangeMax != null">{{datapoint.rangeMax}}</span><span ng-if="datapoint.rangeMax == null">∞</span></td> + <td ng-if="datapoint.type == 'discrete'">{{datapoint.states}}</td> + </tr> + </tbody> + </table> + <hr/> + <div style="padding-bottom: 10px;">Request example</div> + <div>Content-Type: application/json</div> + <div>{</div> + <div ng-repeat="datapoint in datapoints" style="padding-left: 20px;">"{{datapoint.key}}": "Hello world",</div> + <div>}</div> + <hr/> + <div style="padding-bottom: 10px;">Response example</div> + <div><span>201</span> Datapoint successfully recorded.</div> + <div>Content-Type: application/json</div> + <div>{</div> + <div style="padding-left: 20px;">"responseMessage": "Success!",</div> + <div>}</div> + </div> +</div> diff --git a/dist/views/analyzer.html b/dist/views/analyzer.html index d1cd322f54b98735ae8fb492ee1ce5d5194b26f2..bed03bdf05ed123b8cf4761198b820afbda36a26 100644 --- a/dist/views/analyzer.html +++ b/dist/views/analyzer.html @@ -6,7 +6,7 @@ </div> <div class="analyzer-title-text"> - <h2><a>Robotek</a> / <a ui-sref="analyzer.dataModel">Customers</a></h2> + <h1><a>Robotek</a> / <a ui-sref="analyzer.dataModel">Customers</a></h1> </div> </div> <div class="analyzer-buttons"> diff --git a/scss/main.scss b/scss/main.scss index 050116e50adaa38a2ff3d305fd43e273aafa5d6f..d6dc8f3ce62ec767c97eb7c81cfa93ac6df6b6d9 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -15,6 +15,11 @@ $primary-foreground-color: #000000; $muted-foreground-color: #bbbbbb; $important-alert-color: #ff3911; +h1 { + font-size: 21px; + margin: 0; +} + a { cursor: pointer; cursor: hand; @@ -190,7 +195,7 @@ footer div { border-radius: 5px; border-collapse: separate; width: 100%; - background-color: rgb(248, 248, 248); + background-color: $muted-background-color; } .data-model-table tbody tr td { @@ -330,10 +335,6 @@ footer div { display: inline-block; } -.analyzer-title-text h2 { - margin: 0; -} - .analyzer-container { @extend .columns; }