Comments (3)
This could be done in the API server or in the proxy
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html
from wazicloud-api.
Applied the following routing in NGINX:
location /api/v1 {
rewrite ^/api/v1/sensors/(.*)/measurements/(.*)/values$ /api/v2/devices/$1/sensors/$2/value break;
rewrite ^/api/v1/sensors/(.*)/measurements/(.*)$ /api/v2/devices/$1/sensors/$2 break;
rewrite ^/api/v1/sensors/(.*)/measurements$ /api/v2/devices/$1/sensors break;
rewrite ^/api/v1/sensors/(.*)$ /api/v2/devices/$1 break;
rewrite ^/api/v1/sensors$ /api/v2/devices break;
proxy_pass http://localhost:800;
}
from wazicloud-api.
done
from wazicloud-api.
Related Issues (20)
- Support list of sensors and devices in /sensors_data HOT 1
- Use device ID as keycloak ID HOT 1
- PUT visibility has no impact HOT 1
- GET /projects with full=true takes forever
- umlaut names not supported HOT 1
- MQTT subscription: return device_id and sensor_id
- Space leak HOT 1
- Twitter ID @
- Better error message "phone ID or sms credit"
- 403 "Forbidden" when sending SMS HOT 1
- Update Twitter lib HOT 1
- Running without MQTT gives errors
- MQTT connect goes off HOT 3
- Clashing when creating a device and a gateway with the same ID HOT 5
- Slow API responses HOT 4
- Permissions cache HOT 3
- MongoDB performance HOT 2
- Link between devices and gateways HOT 2
- Calibration problem HOT 2
- error 400 instead of 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wazicloud-api.