diff --git a/dimria-fe/src/Components/AdvertDetails/index.tsx b/dimria-fe/src/Components/AdvertDetails/index.tsx index 7d4315e..db2f474 100644 --- a/dimria-fe/src/Components/AdvertDetails/index.tsx +++ b/dimria-fe/src/Components/AdvertDetails/index.tsx @@ -51,6 +51,12 @@ const AdvertDetailsModal = forwardRef((p {advertDetailsDto?.city_name} + + {advertDetailsDto?.price} + + + {advertDetailsDto?.currency} + {advertDetailsDto?.rooms_count} diff --git a/dimria-fe/src/redux/adverts/requests.ts b/dimria-fe/src/redux/adverts/requests.ts index 003b7fe..c6a9d6c 100644 --- a/dimria-fe/src/redux/adverts/requests.ts +++ b/dimria-fe/src/redux/adverts/requests.ts @@ -1,18 +1,18 @@ import axios from 'axios'; export const fetchAdverts = async (cityId: number) => { - //return await axios.get('https://dimria-advert-prices.azurewebsites.net/api/get_advertisements'); - return await axios.get(`http://localhost:7071/api/get_advertisements/${cityId}`); + return await axios.get(`https://dimria-advert-prices.azurewebsites.net/api/get_advertisements/${cityId}`); + //return await axios.get(`http://localhost:7071/api/get_advertisements/${cityId}`); } export const fetchAdvertDetails = async (advertId: string) => { - //return await axios.get(`https://dimria-advert-prices.azurewebsites.net/api/get_advert_details/${advertId}`); - return await axios.get(`http://localhost:7071/api/get_advert_details/${advertId}`); + return await axios.get(`https://dimria-advert-prices.azurewebsites.net/api/get_advert_details/${advertId}`); + //return await axios.get(`http://localhost:7071/api/get_advert_details/${advertId}`); } export const fetchCities = async () => { - //return await axios.get('https://dimria-advert-prices.azurewebsites.net/api/get_cities'); - return await axios.get('http://localhost:7071/api/get_cities'); + return await axios.get('https://dimria-advert-prices.azurewebsites.net/api/get_cities'); + //return await axios.get('http://localhost:7071/api/get_cities'); } diff --git a/function_app.py b/function_app.py index 0ec806f..1331499 100644 --- a/function_app.py +++ b/function_app.py @@ -142,18 +142,18 @@ def get_advert_details(req: func.HttpRequest) -> func.HttpResponse: resultResponse: AdvertDetailsResponse = AdvertDetailsResponse( advert_id, - cityName, - price, - rooms_count, - currency_type_uk, - description, - floor, - main_photo, - lat, - lon, - building_name, - url, - photos + city_name=cityName, + price=price, + rooms_count=rooms_count, + currency=currency_type_uk, + description=description, + floor=floor, + main_photo=main_photo, + lat=lat, + lon=lon, + building_name=building_name, + url=url, + photos=photos ) data = json.dumps(resultResponse, cls=AdvertDetailsResponseEncoder)