-
Notifications
You must be signed in to change notification settings - Fork 0
Home
fandilladp edited this page Apr 27, 2023
·
1 revision
This rest api is for mosfitech partners so they can control and monitor kits in realtime
-
get |
https://api.berusaha.live/mopartner/get all data partner -
post |
https://api.berusaha.live/mopartner/add new data mitra -
put |
https://api.berusaha.live/mopartner/:idupdated data mitra { require all body } -
delete|
https://api.berusaha.live/mopartner/:iddelete one mitra -
get |
https://api.berusaha.live/mopartner/:iddetail spesifik mitra using find by _id -
get |
https://api.berusaha.live/mopartner/emmaildetail spesifik mitra using find by email
- 200 Success
- 400 Bad Request
- 500 Internal Server Error
Rest api to connect users to hardware kits
-
get |
https://api.berusaha.live/kits/get all data kits -
post |
https://api.berusaha.live/kits/add new data kits -
put |
https://api.berusaha.live/kits/:idupdated data kits { require all body } -
delete|
https://api.berusaha.live/kits/:iddelete one kits -
get |
https://api.berusaha.live/kits/emmaildetail spesifik kits using find by email -
put |
https://api.berusaha.live/kits/warning/:idupdated data kits only warning status -
put |
https://api.berusaha.live/kits/location/:idupdated data kits only location kits -
put |
https://api.berusaha.live/kits/battray/:idupdated data kits only battray percentage kits -
put |
https://api.berusaha.live/kits/rental/:idupdated data to ready rental {rental_status,rental_time,latest_rent_username,latest_rent_email} -
get |
https://api.berusaha.live/kits/rental/:iddetail spesifik kits using find by id
-
put |
https://api.berusaha.live/kits/publish/:idupdated rental status -
put |
https://api.berusaha.live/kits/publish/warning/:idupdated data to warning zone kits
- 200 Success
- 400 Bad Request
- 500 Internal Server Error
Connectivity broker with the mqtt protocol uses the pub sub method to exchange data information between servers and kits in real time, where there is a geofencing process using georedis computations that can calculate the area of the vehicle
kits subscribe
-
rental/uuid- response {rental status, 0 to no rental and 1 ready to rental}
-
rental/warning/uuid- response {rental warning zone 0 to false & 1 to true}
kits publish
-
rental/battray- response updated data battray to db
- format data
uuid,data-battray
- format data
- response updated data battray to db
-
rental/location- response updated data location
- format data
uuid,latitude,longitude
- format data
- response updated data location