https://github.com/jakubteichman/airport_app_api
REST API in .NET for airport reservations management
https://github.com/jakubteichman/airport_app_api
csharp dotnet rest-api
Last synced: 2 months ago
JSON representation
REST API in .NET for airport reservations management
- Host: GitHub
- URL: https://github.com/jakubteichman/airport_app_api
- Owner: JakubTeichman
- Created: 2025-03-03T18:27:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T18:43:26.000Z (over 1 year ago)
- Last Synced: 2025-06-15T05:36:02.699Z (about 1 year ago)
- Topics: csharp, dotnet, rest-api
- Language: C#
- Homepage:
- Size: 2.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Airport App API
**Airport App API** is a RESTful API built with .NET, designed for managing flight reservations.
## ๐ Features
- Management of airports, flights, and reservations
- CRUD operations for main resources
- Input data validation
## ๐ ๏ธ Requirements
- .NET 5.0 or newer
## ๐ Installation
1. **Clone the repository**
```bash
git clone https://github.com/JakubTeichman/Airport_App_API.git
cd Airport_App_API
```
2. **Install dependencies**
```bash
dotnet restore
```
3. **Run the application**
```bash
dotnet run
```
The application will be available at `https://localhost:5001`.
## ๐ API Endpoints
- `GET /api/airports` - Retrieves a list of airports
- `POST /api/airports` - Adds a new airport
- `GET /api/flights` - Retrieves a list of flights
- `POST /api/flights` - Adds a new flight
- `GET /api/reservations` - Retrieves a list of reservations
- `POST /api/reservations` - Creates a new reservation
## ๐งช API Testing
To test the API, it is recommended to use Swagger UI. After starting the application, navigate to:
```
https://localhost:5001/swagger
```
Swagger allows interactive testing of endpoints and provides API documentation.