Open gitkoshelew opened 2 years ago
As I see 2 new GET endpoints were added to webapp, so we can try to test it
GET /api/hotels
GET /api/hotel/:id
Expected result: Hotel ID=1 has coordinates Actual result: Hotel ID=1 has coordinates
Additional checkup. Call GET/api/hotels Expected result: All columns have the correct name Actual result: Some columns have the strange name like "nameID" and "addressID". Such column name should use only for column with secondary key
Additional checkup. Call GET/api/hotel/10 - not existing hotel ID=10 Expected result: When we send HTTP request with not existing hotel ID=10 we can receive correct HTTP status 404 or 500 Actual result: When we send HTTP request with not existing hotel ID=10 we have received incorrect HTTP status 400
5 sp