FPT. Education
TRƯƠNG ĐẠI HỌC FPT
{"type": "Sugar", "price_extra": 3},
{"type": "Chocolate", "price_extra": 2},
{"type": "Maple", "price_extra": 2}
]
},
{
"type": "donut",
"name": "Old Fashioned",
"price": 2.7,
"topping":
[
{"type": "None", "price_extra": 0},
{"type": "Glazed", "price_extra": 2},
{"type": "Chocolate", "price_extra": 2},
{"type": "Maple", "price_extra": 2}
]
}
2. Do the REST API (GET, POST, PUT, DELETE) endpoints /cakes and /cakes/:cakeld are implemented to interact with the MongoDB database (4 mark)
3. Using token-based authentication in order to allow anyone to perform GET operations and allow only an Admin to perform POST, PUT and DELETE operations (3 mark)
Materials that student must submit to the Ismdn system for marking include:
1. ABC_code.zip (70% of marking)
2. The pdf file has the screenshot of the application that is tested by Postman. If the app has error, please note "App has error" to the file. (30% of marking)