diff --git a/README.md b/README.md index 2453930..ddc93af 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ # RW API Landing page + +Dependencies on other Microservices: + +- [Control Tower](https://github.com/resource-watch/control-tower) diff --git a/app/index.html b/app/index.html index f84df34..e9460ce 100644 --- a/app/index.html +++ b/app/index.html @@ -22,14 +22,14 @@ - + - + @@ -117,9 +117,9 @@

Several sources_ Same interface_

-

It doesn’t matter if the data is in CARTO, CSV, ArcGIS, JSON, or GEE format because we’ve used SQL and feature service, both standard languages, to query the data and reveal the information that is sought. Whatever system you use, you’ll be able to use it, avoiding any lengthy and difficult discussions about standards and compatibility. We’ve done the hard work so you don’t have to.

- Swagger Docs +

It doesn’t matter if the data is in CARTO, CSV, ArcGIS, JSON, or GEE. We use SQL to query the data and reveal the information that is sought, no matter where it's stored. Whatever system you use, you’ll be able to use it, avoiding any lengthy and difficult discussions about standards and compatibility. We’ve done the hard work so you don’t have to.

API Docs + Tutorials
@@ -138,8 +138,8 @@

Several sources_ Same interface_

Production_ Ready_

-

In case you want to upload your own data to the platform you can request us to create your own user. However all data is actually available to use in any application or research project.

- Go to the console +

Want to host your own data on the RW API? No problem! Simply sign up for a free account, and you can upload your own data, to power your own application and share it with the world.

+ Login or Register
@@ -199,38 +199,6 @@

Loading ...

- -
-
-
-
-
-

Most requested Endpoints Performance

-

Loading ...

- - - - - - - - - - - - - - - -
#EndpointAvg Response Time
{{1+$index}}{{item._id.sourceMethod}}: {{item._id.endpointPath}}{{item.sum.toFixed(2)}} ms -
-
-
-
-
-
- -
@@ -256,7 +224,7 @@

-

Resource Watch 2017

+

Resource Watch 2020

@@ -282,4 +250,4 @@

- + \ No newline at end of file diff --git a/app/rw-lp/scripts/app.js b/app/rw-lp/scripts/app.js index dd556ca..44ab050 100644 --- a/app/rw-lp/scripts/app.js +++ b/app/rw-lp/scripts/app.js @@ -3,7 +3,6 @@ angular.module('app', []); angular.module('app').controller('StatusController', ['$http', StatusController]); - angular.module('app').controller('PerformanceController', ['$http', PerformanceController]); function StatusController($http) { var vm = this; @@ -24,24 +23,4 @@ } - function PerformanceController($http) { - var vm = this; - - vm.statistics = null; - - $http({ - method: 'GET', - url: '//production-api.globalforestwatch.org/api/v1/stadistic/avgByRequest?'+Date.now() - }).then(function successCallback(response) { - vm.statistics = response.data; - // this callback will be called asynchronously - // when the response is available - }, function errorCallback(response) { - // called asynchronously if an error occurs - // or server returns response with an error status. - }); - - } - - })(); diff --git a/microservice/register.json b/microservice/register.json index 6eb941a..706ddca 100644 --- a/microservice/register.json +++ b/microservice/register.json @@ -18,7 +18,7 @@ ] }, { - "url": "/v1/*.js", + "url": "/v1/rw-lp/*.js", "authenticated": false, "method": "GET", "endpoints": [ @@ -30,7 +30,7 @@ ] }, { - "url": "/v1/*.css", + "url": "/v1/rw-lp/*.css", "authenticated": false, "method": "GET", "endpoints": [ @@ -42,7 +42,7 @@ ] }, { - "url": "/v1/*.png", + "url": "/v1/rw-lp/*.png", "authenticated": false, "method": "GET", "endpoints": [ @@ -54,7 +54,7 @@ ] }, { - "url": "/v1/*.jpg", + "url": "/v1/rw-lp/*.jpg", "authenticated": false, "method": "GET", "endpoints": [ @@ -66,7 +66,7 @@ ] }, { - "url": "/v1/*.svg", + "url": "/v1/rw-lp/*.svg", "authenticated": false, "method": "GET", "endpoints": [ @@ -78,7 +78,7 @@ ] }, { - "url": "/v1/*.ico", + "url": "/v1/rw-lp/*.ico", "authenticated": false, "method": "GET", "endpoints": [ @@ -90,7 +90,7 @@ ] }, { - "url": "/v1/*.txt", + "url": "/v1/rw-lp/*.txt", "authenticated": false, "method": "GET", "endpoints": [ @@ -102,7 +102,7 @@ ] }, { - "url": "/v1/*.json", + "url": "/v1/rw-lp/*.json", "authenticated": false, "method": "GET", "endpoints": [