Cloud computing side of Mageiras by team C241-PS325
| Name | Bangkit ID |
|---|---|
| Radhiyan Muhammad Hisan | C004D4KY0679 |
| Ridwan Faisal | C299D4KY0177 |
Utilize JavaScript’s runtime Node.js with HAPI framework for the web server for the API. Before deployment, Postman is used for testing. App Engine to deploy the application and Cloud Storage to store the data. Lastly, the authentication uses Firestore and Firebase
- Node.js
- HAPI framework
- Postman
- Firestore
- App Engine
- Cloud Storage
| Endpoint | Method | Body Request (JSON) | Body Response (JSON) |
|---|---|---|---|
| /login | POST | email, password | status, message |
| /register | POST | email, password, username | status, message, token |
| /logout | POST | email, password | status, message |
| /predict | POST | base64 | ingredients |
| /ingredients/add | POST | user_id, ingredient_name, amount | status, message |
| /ingredients | GET | user_id | ingredient_name, amount |
| /ingredients/{ingredient_id} | GET | user_id, ingredient_id | ingredient_id, ingredient_name, amount |
| /ingredients/amount/{ingredient_id} | PUT | user_id, ingredient_id, amount | status, message |
| /ingredients/{ingredient_id} | DELETE | user_id, ingredient_id | status, message |
| /ingredients | DELETE | user_id | status, message |