Skip to content

teodorslisovenko/IMSystemsHomework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello ✋ and welcome to a homework exercise for IMSystems.

This repository contains a project separated by main back-end and front-end folders.

ℹ️ The backend part is containing API by .NET CORE version 5.0.5. API's objective is to deliver simple weather data by calling it with the city of interest. I used openweathermap.org API to retrieve weather data for little minimization and modification. Additionally, backend API can deliver JSON-type files with saved weather content in them. From third-party libraries, it is using just Json.NET.

Backend


/api/get

Retrieve a weather data

Request
GET /WeatherForecast/weather?city=riga
Name Description
city City of interest for which to retrieve weather info. (Default value is Riga)
printOut (optional) Download JSON-type file. Values True/False. (Default value is False)
comment (optional) Add a "comment" key property for the downloaded JSON file. (Shoud be used when "printOut" is True)
Response
{
    "name": "Rīga",
    "weather": [
        {
            "main": "Clouds",
            "description": "broken clouds"
        }
    ],
    "main": {
        "temp": 6.0,
        "feels_like": 2.76,
        "temp_min": 6.0,
        "temp_max": 6.0,
        "pressure": 1012.0,
        "humidity": 75.0
    },
    "wind": {
        "speed": 4.63,
        "deg": 340.0
    },
    "visibility": 10000.0
}

Frontend

ℹ️ The frontend part is containing a basic React app, which objective is to interact and display backend API functionality. From third party libraries, it is using just reactstrap and downloadJS.

About

Homework exercise for IMSystems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors