/CroHoliCityAPI

Primary LanguageC#MIT LicenseMIT

Adresar WebAPI

This project is a simple WebAPI that fetches holidays and cities from a local database. It is designed to provide users with holiday information based on their country. The current version supports fetching holidays and cities in Croatia.

This project is created for learning purposes and serves as my first-ever WebAPI project.

Getting Started

To get started with this project, follow these simple steps:

  1. Clone the repository to your local machine.
  2. Open the project in your preferred IDE.
  3. Configure the local database settings in the appsettings.json file.
  4. Run the application.

Endpoints

The API provides the following endpoints:

  • /holidays: Retrieves a list of holidays in [your country].
  • /cities: Retrieves a list of cities in [your country].

Usage

You can use this API to retrieve holiday information for your country. Make a GET request to the appropriate endpoint to fetch the desired data. The API will return a JSON response with the relevant information.

Sample Request