diff --git a/.gitignore b/.gitignore index b3090667..fde2e24a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .bundle +.sass-cache _site crash.log tmp diff --git a/Gemfile.lock b/Gemfile.lock index 85c798e8..870c44c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,24 +1,23 @@ GIT remote: https://github.com/NREL/capistrano_nrel_ext.git - revision: 0b8b3fbf1bcd8bbb84b06592bfb10e4985875af6 + revision: 043eec456a4fc8a6bdd10d1935a3ca63cd4203d6 specs: capistrano_nrel_ext (0.3.0) - artii - capistrano + capistrano (< 3.0) chronic (>= 0.6.0) + chronic_duration diffy erubis (>= 2.6.0) highline - net-ssh (~> 2.4.0) + net-ssh (>= 2.5.2, < 2.8.0) + rainbow tzinfo (>= 0.3.0) GEM remote: https://rubygems.org/ specs: - adsf (1.1.1) + adsf (1.2.0) rack (>= 1.0.0) - artii (2.0.3) - atomic (1.1.14) bootstrap-sass (2.3.2.2) sass (~> 3.2) capistrano (2.15.5) @@ -30,68 +29,80 @@ GEM capistrano-ext (1.2.1) capistrano (>= 1.0.0) chronic (0.10.2) - chunky_png (1.2.9) + chronic_duration (0.10.6) + numerizer (~> 0.1.1) + chunky_png (1.3.4) coderay (1.1.0) colored (1.2) - compass (0.12.2) + compass (1.0.3) chunky_png (~> 1.2) - fssm (>= 0.2.7) - sass (~> 3.1) - cri (2.4.0) - colored (>= 1.2) - diffy (3.0.1) + compass-core (~> 1.0.2) + compass-import-once (~> 1.0.5) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + sass (>= 3.3.13, < 3.5) + compass-core (1.0.3) + multi_json (~> 1.0) + sass (>= 3.3.0, < 3.5) + compass-import-once (1.0.5) + sass (>= 3.2, < 3.5) + cri (2.6.1) + colored (~> 1.2) + diffy (3.0.7) erubis (2.7.0) - execjs (2.0.2) - fssm (0.2.10) - highline (1.6.20) + execjs (2.3.0) + ffi (1.9.6) + highline (1.7.0) hike (1.2.3) - jruby-pageant (1.1.1) - json (1.8.1) - kramdown (1.2.0) - libv8 (3.16.14.3) - mini_portile (0.5.2) - multi_json (1.8.2) - mustache (0.99.4) - nanoc (3.6.5) + json (1.8.2) + kramdown (1.5.0) + libv8 (3.16.14.7) + mini_portile (0.6.2) + multi_json (1.10.1) + mustache (1.0.1) + nanoc (3.7.5) cri (~> 2.3) nanoc-cachebuster (0.3.1) nanoc (>= 3.3.0) nanoc-sprockets-filter (0.1.1) nanoc (>= 3.4.0) sprockets (>= 2.8.0) - net-scp (1.0.4) - net-ssh (>= 1.99.1) - net-sftp (2.0.5) - net-ssh (>= 2.0.9) - net-ssh (2.4.0) - jruby-pageant (>= 1.0.2) - net-ssh-gateway (1.1.0) - net-ssh (>= 1.99.1) - nokogiri (1.6.0) - mini_portile (~> 0.5.0) - rack (1.5.2) - rake (10.1.0) + net-scp (1.2.1) + net-ssh (>= 2.6.5) + net-sftp (2.1.2) + net-ssh (>= 2.6.5) + net-ssh (2.7.0) + net-ssh-gateway (1.2.0) + net-ssh (>= 2.6.5) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) + numerizer (0.1.1) + rack (1.6.0) + rainbow (2.0.0) + rake (10.4.2) + rb-fsevent (0.9.4) + rb-inotify (0.9.5) + ffi (>= 0.5.0) ref (1.0.5) - sass (3.2.12) - sprockets (2.10.0) + sass (3.4.12) + sprockets (2.12.3) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sprockets-helpers (1.1.0) sprockets (~> 2.0) - sprockets-sass (1.0.2) + sprockets-sass (1.3.1) sprockets (~> 2.0) tilt (~> 1.1) - therubyracer (0.12.0) + therubyracer (0.12.1) libv8 (~> 3.16.14.0) ref - thread_safe (0.1.3) - atomic + thread_safe (0.3.4) tilt (1.4.1) - tzinfo (1.1.0) + tzinfo (1.2.2) thread_safe (~> 0.1) - uglifier (2.3.0) + uglifier (2.7.0) execjs (>= 0.3.0) json (>= 1.8.0) diff --git a/content/docs/wind/windexchange.md b/content/docs/wind/windexchange.md new file mode 100644 index 00000000..d0a44e62 --- /dev/null +++ b/content/docs/wind/windexchange.md @@ -0,0 +1,53 @@ +--- +title: WindExchange Projects +summary: Query our database of WindExchange projects +url: /api/windexchange/ +method: GET +--- + +<%= render("swagger_ie_warning") %> + + + +
+ diff --git a/content/docs/wind/windexchange/api-docs.json b/content/docs/wind/windexchange/api-docs.json new file mode 100644 index 00000000..0c87558f --- /dev/null +++ b/content/docs/wind/windexchange/api-docs.json @@ -0,0 +1,17 @@ +{ + "swaggerVersion": "1.2", + "apiVersion": "1.0.0", + "basePath": "<%= ENV["SWAGGER_HOST"] || "http://localhost:3000" %>/docs/wind/windexchange/api-docs", + "apis": [ + { + "path": "/schoolprojects.json" + }, + { + "path": "/educationprojects.json" + } + ], + "info": { + "title": "WindExchange Projects", + "description": "Query our database of WindExchange projects" + } +} diff --git a/content/docs/wind/windexchange/api-docs/educationprojects.json b/content/docs/wind/windexchange/api-docs/educationprojects.json new file mode 100644 index 00000000..f50583b7 --- /dev/null +++ b/content/docs/wind/windexchange/api-docs/educationprojects.json @@ -0,0 +1,378 @@ +{ + "apiVersion": "1.0.0", + "swaggerVersion": "1.2", + "basePath": "<%= ENV["API_HOST"] || "http://10.10.40.2/api" %>/windexchange", + "resourcePath": "/resources", + "apis": [ + { + "path": "/educationprojects/{id}", + "operations": [ + { + "method": "GET", + "nickname": "findById", + "parameters": [ + { + "paramType": "path", + "name": "id", + "description": "Model id", + "required": true, + "allowMultiple": false, + "type": "any" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find a model instance by id from the data source", + "type": "educationproject" + } + ] + }, + { + "path": "/educationprojects", + "operations": [ + { + "method": "GET", + "nickname": "find", + "parameters": [ + { + "paramType": "query", + "name": "filter", + "description": "Filter defining fields, where, orderBy, offset, and limit", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find all instances of the model matched by filter from the data source", + "type": "array", + "items": { + "type": "educationproject" + } + } + ] + }, + { + "path": "/educationprojects/findOne", + "operations": [ + { + "method": "GET", + "nickname": "findOne", + "parameters": [ + { + "paramType": "query", + "name": "filter", + "description": "Filter defining fields, where, orderBy, offset, and limit", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find first instance of the model matched by filter from the data source", + "type": "educationproject" + } + ] + }, + { + "path": "/educationprojects/count", + "operations": [ + { + "method": "GET", + "nickname": "count", + "parameters": [ + { + "paramType": "query", + "name": "where", + "description": "Criteria to match model instances", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Count instances of the model matched by where from the data source", + "type": "number", + "format": "double" + } + ] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "models": { + "educationproject": { + "id": "educationproject", + "properties": { + "additionalresources": { + "length": 1000, + "type": "string" + }, + "address": { + "length": 100, + "type": "string" + }, + "city": { + "length": 50, + "type": "string" + }, + "commissiondate": { + "length": null, + "type": "string", + "format": "date" + }, + "contactemailaddress": { + "length": 100, + "type": "string" + }, + "contactfax": { + "length": 50, + "type": "string" + }, + "contactname": { + "length": 255, + "type": "string" + }, + "contactphone": { + "length": 50, + "type": "string" + }, + "countryid": { + "length": 2, + "type": "string" + }, + "countryname": { + "length": 100, + "type": "string" + }, + "developer": { + "length": 100, + "type": "string" + }, + "discussion": { + "length": 2147483647, + "type": "string" + }, + "educationalprograms": { + "length": null, + "type": "boolean" + }, + "host": { + "length": 100, + "type": "string" + }, + "id": { + "length": null, + "type": "number", + "format": "double" + }, + "lastupdated": { + "length": null, + "type": "string", + "format": "date" + }, + "latitude": { + "length": null, + "type": "number", + "format": "double" + }, + "longitude": { + "length": null, + "type": "number", + "format": "double" + }, + "mapidentificationnew": { + "length": null, + "type": "number", + "format": "double" + }, + "mapidentificationold": { + "length": null, + "type": "number", + "format": "double" + }, + "markertype": { + "length": 15, + "type": "string" + }, + "newf": { + "length": null, + "type": "boolean" + }, + "owneroperator": { + "length": 100, + "type": "string" + }, + "photo1": { + "length": 100, + "type": "string" + }, + "photo1alt": { + "length": 300, + "type": "string" + }, + "photo1caption": { + "length": 300, + "type": "string" + }, + "photo1height": { + "length": 4, + "type": "string" + }, + "photo1link": { + "length": 100, + "type": "string" + }, + "photo1width": { + "length": 4, + "type": "string" + }, + "photo2": { + "length": 100, + "type": "string" + }, + "photo2alt": { + "length": 300, + "type": "string" + }, + "photo2caption": { + "length": 300, + "type": "string" + }, + "photo2height": { + "length": 4, + "type": "string" + }, + "photo2link": { + "length": 100, + "type": "string" + }, + "photo2width": { + "length": 4, + "type": "string" + }, + "postalcode": { + "length": 10, + "type": "string" + }, + "projectname": { + "length": 100, + "type": "string" + }, + "projectnameurl": { + "length": 255, + "type": "string" + }, + "projecttype": { + "length": 50, + "type": "string" + }, + "province": { + "length": 50, + "type": "string" + }, + "schools": { + "length": null, + "type": "boolean" + }, + "stateid": { + "length": 2, + "type": "string" + }, + "status": { + "length": 50, + "type": "string" + }, + "statusdisplay": { + "length": 50, + "type": "string" + }, + "technologydescription": { + "length": 255, + "type": "string" + }, + "totalsize": { + "length": null, + "type": "number", + "format": "double" + }, + "totalsizeold": { + "length": 50, + "type": "string" + }, + "wacid": { + "length": null, + "type": "number", + "format": "double" + }, + "wfstype": { + "length": 50, + "type": "string" + }, + "windappcenter": { + "length": 100, + "type": "string" + } + }, + "required": [ + "id", + "statusdisplay" + ] + } + } +} diff --git a/content/docs/wind/windexchange/api-docs/schoolprojects.json b/content/docs/wind/windexchange/api-docs/schoolprojects.json new file mode 100644 index 00000000..97c4ffe5 --- /dev/null +++ b/content/docs/wind/windexchange/api-docs/schoolprojects.json @@ -0,0 +1,382 @@ +{ + "apiVersion": "1.0.0", + "swaggerVersion": "1.2", + "basePath": "<%= ENV["API_HOST"] || "http://10.10.40.2/api" %>/windexchange", + "resourcePath": "/resources", + "apis": [ + { + "path": "/schoolprojects/{id}", + "operations": [ + { + "method": "GET", + "nickname": "findById", + "parameters": [ + { + "paramType": "path", + "name": "id", + "description": "Model id", + "required": true, + "allowMultiple": false, + "type": "any" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find a model instance by id from the data source", + "type": "schoolproject" + } + ] + }, + { + "path": "/schoolprojects", + "operations": [ + { + "method": "GET", + "nickname": "find", + "parameters": [ + { + "paramType": "query", + "name": "filter", + "description": "Filter defining fields, where, orderBy, offset, and limit", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find all instances of the model matched by filter from the data source", + "type": "array", + "items": { + "type": "schoolproject" + } + } + ] + }, + { + "path": "/schoolprojects/findOne", + "operations": [ + { + "method": "GET", + "nickname": "findOne", + "parameters": [ + { + "paramType": "query", + "name": "filter", + "description": "Filter defining fields, where, orderBy, offset, and limit", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Find first instance of the model matched by filter from the data source", + "type": "schoolproject" + } + ] + }, + { + "path": "/schoolprojects/count", + "operations": [ + { + "method": "GET", + "nickname": "count", + "parameters": [ + { + "paramType": "query", + "name": "where", + "description": "Criteria to match model instances", + "required": false, + "allowMultiple": false, + "type": "object" + }, + { + "name": "api_key", + "description": "API Key", + "paramType": "query", + "required": true, + "dataType": "string", + "defaultValue": "DEMO_KEY" + } + ], + "responseMessages": [ + { + "code": 200, + "message": "Request was successful" + } + ], + "summary": "Count instances of the model matched by where from the data source", + "type": "number", + "format": "double" + } + ] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "models": { + "schoolproject": { + "id": "schoolproject", + "properties": { + "additionalresources": { + "length": 1000, + "type": "string" + }, + "address": { + "length": 100, + "type": "string" + }, + "city": { + "length": 50, + "type": "string" + }, + "commissiondate": { + "length": null, + "type": "string", + "format": "date" + }, + "contactemailaddress": { + "length": 100, + "type": "string" + }, + "contactfax": { + "length": 50, + "type": "string" + }, + "contactname": { + "length": 255, + "type": "string" + }, + "contactphone": { + "length": 50, + "type": "string" + }, + "countryid": { + "length": 2, + "type": "string" + }, + "countryname": { + "length": 100, + "type": "string" + }, + "developer": { + "length": 100, + "type": "string" + }, + "discussion": { + "length": 2147483647, + "type": "string" + }, + "educationalprograms": { + "length": null, + "type": "boolean" + }, + "host": { + "length": 100, + "type": "string" + }, + "id": { + "length": null, + "type": "number", + "format": "double" + }, + "lastupdated": { + "length": null, + "type": "string", + "format": "date" + }, + "latitude": { + "length": null, + "type": "number", + "format": "double" + }, + "longitude": { + "length": null, + "type": "number", + "format": "double" + }, + "mapidentificationnew": { + "length": null, + "type": "number", + "format": "double" + }, + "mapidentificationold": { + "length": null, + "type": "number", + "format": "double" + }, + "markertype": { + "length": 15, + "type": "string" + }, + "newf": { + "length": null, + "type": "boolean" + }, + "owneroperator": { + "length": 100, + "type": "string" + }, + "photo1": { + "length": 100, + "type": "string" + }, + "photo1alt": { + "length": 300, + "type": "string" + }, + "photo1caption": { + "length": 300, + "type": "string" + }, + "photo1height": { + "length": 4, + "type": "string" + }, + "photo1link": { + "length": 100, + "type": "string" + }, + "photo1width": { + "length": 4, + "type": "string" + }, + "photo2": { + "length": 100, + "type": "string" + }, + "photo2alt": { + "length": 300, + "type": "string" + }, + "photo2caption": { + "length": 300, + "type": "string" + }, + "photo2height": { + "length": 4, + "type": "string" + }, + "photo2link": { + "length": 100, + "type": "string" + }, + "photo2width": { + "length": 4, + "type": "string" + }, + "postalcode": { + "length": 10, + "type": "string" + }, + "projectname": { + "length": 100, + "type": "string" + }, + "projectnameurl": { + "length": 255, + "type": "string" + }, + "projecttype": { + "length": 50, + "type": "string" + }, + "province": { + "length": 50, + "type": "string" + }, + "schools": { + "length": null, + "type": "boolean" + }, + "stateid": { + "length": 2, + "type": "string" + }, + "status": { + "length": 50, + "type": "string" + }, + "statusdisplay": { + "length": 50, + "type": "string" + }, + "technologydescription": { + "length": 255, + "type": "string" + }, + "totalsize": { + "length": null, + "type": "number", + "format": "double" + }, + "totalsizeold": { + "length": 50, + "type": "string" + }, + "wacid": { + "length": null, + "type": "number", + "format": "double" + }, + "wfstype": { + "length": 50, + "type": "string" + }, + "windappcenter": { + "length": 100, + "type": "string" + }, + "windappcenterurl": { + "length": 255, + "type": "string" + } + }, + "required": [ + "id", + "statusdisplay" + ] + } + } +}