This application aims to create a very barebones version of ZBK's Backend functionality using only Vanilla NodeJS, no Express, so to do this, we are making a straightforward REST API. Our REST API will receive query params for location and timeframe data and return the correct weather data. Our API will also receive JSON data for obstacle type, level of difficulty range, and city to return locations that meet the specifications.
The primary objective is to create a server that runs a RESTful API that can receive location and timeframe data within a URL and return the correct weather data stored within our data folder.
The Secondary objective is to create a server that runs a RESTful API that can receive a 'level of difficulty' (numerical), 'obstacle type' (text) and 'city name' (text) data within the request's body. Once received, return the correct location data stored within our data folder that match the set conditions.
There have been changes to the purpose of this application. I have decided to limit this REST API to return weather data only for the following reasons:
2) I will be using the features of this application in a personal product and would like to protect some of my intellectual property.
3) I will be making this API again using Express, so I rather not do too much of what I will be doing again. If I decide to make that project public, I will provide a link to it here.
The code for this repository is for a backend API application, so to interact, you will need to either to either enter your data in your browser's search bar or use a service such as Postman. Weather data returns in the form of a JSON object and insutrctions as an HTML file.
Gives you an overview of this API.
Gives you an overview of accessing the /hour route.
Gives you an overview of accessing the /hours route.
- Added Update section
- Removed last sentence in purpose description
- Removed secondary objective
- Grammar fixes
- Added How To Use section