######### STATION APIS#########
- APIs for login and do actions (RENT/BACK)
- git clone git clone https://zaynabm@bitbucket.org/zaynabm/stebn-apis.git
- cd stebn-apis
- npm install
- edit config.js, set "stationID" to your station's ID
- node app
- for all requests use :
- Method: POST
- headers: {Content-Type:application/json}
-
check user RFID - url: http://[RPI IP]:9999/login/checkRFID - Body: {"userRFID":"[user RFID]"}
-
check user password - url: http://[RPI IP]:9999/login/checkPassword - Body: {"userRFID":"[user RFID]","userPassword":"[user password]"}
-
Rent action
- url: http://[RPI IP]:9999/actions/rent - Body: {"userRFID":"[user RFID]","bikeRFID":"[bike RFID]"} -
Back action - url: http://[RPI IP]:9999/actions/back - Body: {"bikeRFID":"[bike RFID]"}