gitkoshelew / goReact

golang react postgres rabbitmq docker project
MIT License
2 stars 0 forks source link

add map coordinates to model #161

Open gitkoshelew opened 2 years ago

gitkoshelew commented 2 years ago

5 sp

Ann40a commented 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
ESorokina2908 commented 2 years ago
  1. Call GET/api/hotel/1 Single hotel endpoint

Expected result: Hotel ID=1 has coordinates Actual result: Hotel ID=1 has coordinates

  1. Additional checkup. Call GET/api/hotels Hotels endpoint 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

  2. Additional checkup. Call GET/api/hotel/10 - not existing hotel ID=10 Hotel not found 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