# nikakvaratskhelia/at-b architecture

> Architecture diagram of the GitHub repository nikakvaratskhelia/at-b, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nikakvaratskhelia/at-b
- Repository: https://github.com/nikakvaratskhelia/at-b

## Overview

This is a tourism-booking and content-management API. Its principal workflow is browsing localized tours and schedules, creating a booking, and managing that booking; administrators also manage tours, blogs, and reusable localized content blocks. Authentication, user administration, favorites, notifications, email, and uploads are additional product capabilities. The sampled services show database-backed operations, but many controller/service and registration details are known only from the source index, so those connections are marked unverified rather than treated as confirmed calls.

Main entry points: [`Data/DataContext.cs`](https://github.com/nikakvaratskhelia/at-b/blob/master/Data/DataContext.cs) (Application database), [`Services/Bookings/BookingService.cs`](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Bookings/BookingService.cs) (Booking workflow), [`Services/Auth/AuthService.cs`](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Auth/AuthService.cs) (Authentication), [`Common/Services/SmtpService.cs`](https://github.com/nikakvaratskhelia/at-b/blob/master/Common/Services/SmtpService.cs) (SMTP service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API endpoints"]
  node_auth_api["Authentication API<br/>[AuthController.cs]"]
  node_tour_api["Tours API<br/>[ToursController.cs]"]
  node_schedule_api["Schedules API"]
  node_occurrence_api["Occurrences API"]
  node_booking_api["Bookings API"]
  node_blog_api["Blogs API<br/>[BlogController.cs]"]
  node_content_api["Content blocks API"]
  node_translation_api["Translation APIs"]
  node_block_translation_api["Block translations API"]
  node_user_api["Users API<br/>[UserController.cs]"]
  node_favorites_api["Favorites API"]
  node_notifications_api["Notifications API"]
  node_upload_api["Upload API"]
end

subgraph group_catalog["Tourism catalog"]
  node_tour_service["Tour management<br/>[TourServices.cs]"]
  node_schedule_service["Schedule management<br/>[ScheduleService.cs]"]
  node_occurrence_service["Occurrence management"]
  node_tour_model["Tour records<br/>[Tour.cs]"]
end

subgraph group_booking["Bookings and users"]
  node_booking_service["Booking workflow<br/>[BookingService.cs]"]
  node_auth_service["Authentication<br/>[AuthService.cs]"]
  node_user_service["User management<br/>[UserService.cs]"]
  node_favorites_service["Favorites"]
  node_notification_service["Notifications"]
  node_booking_model["Booking records<br/>[Booking.cs]"]
end

subgraph group_content["Localized content"]
  node_blog_service["Blog management<br/>[BlogService.cs]"]
  node_content_service["Content blocks"]
  node_tour_translation_service["Tour translations"]
  node_blog_translation_service["Blog translations"]
  node_block_translation_service["Block translations"]
  node_locale_service["Locale management<br/>[LocaleService.cs]"]
end

subgraph group_platform["Shared services"]
  node_email_service["Email delivery<br/>[EmailService.cs]"]
  node_smtp["SMTP service<br/>[SmtpService.cs]"]
  node_uploader["File uploader<br/>[UploaderService.cs]"]
  node_database[("Application database<br/>[DataContext.cs]")]
end

node_visitor(("API client"))

node_visitor -.->|"submits credentials"| node_auth_api
node_visitor -.->|"browses tours"| node_tour_api
node_visitor -.->|"requests booking"| node_booking_api
node_auth_api -.->|"delegates"| node_auth_service
node_tour_api -.->|"delegates"| node_tour_service
node_schedule_api -.->|"delegates"| node_schedule_service
node_occurrence_api -.->|"delegates"| node_occurrence_service
node_booking_api -.->|"delegates"| node_booking_service
node_blog_api -.->|"delegates"| node_blog_service
node_content_api -.->|"delegates"| node_content_service
node_translation_api -.->|"delegates"| node_tour_translation_service
node_block_translation_api -.->|"delegates"| node_block_translation_service
node_user_api -.->|"delegates"| node_user_service
node_favorites_api -.->|"delegates"| node_favorites_service
node_notifications_api -.->|"delegates"| node_notification_service
node_upload_api -.->|"delegates"| node_uploader
node_tour_service -->|"reads and writes"| node_database
node_schedule_service -->|"reads and writes"| node_database
node_blog_service -->|"reads and writes"| node_database
node_content_service -->|"reads and writes"| node_database
node_booking_service -->|"reads and writes"| node_database
node_auth_service -->|"reads and writes"| node_database
node_user_service -->|"reads and writes"| node_database
node_locale_service -->|"reads and writes"| node_database
node_auth_service -->|"sends verification email"| node_smtp
node_booking_service -->|"creates notification"| node_notification_service
node_booking_service -.->|"sends booking email"| node_smtp
node_email_service -.->|"uses SMTP"| node_smtp
node_database -->|"maps records"| node_booking_model
node_database -->|"maps records"| node_tour_model

click node_auth_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Auth/AuthController.cs"
click node_tour_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Tours/ToursController.cs"
click node_schedule_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Schedules/SchedulesController.cs"
click node_occurrence_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ScheduleOccurences/ScheduleOccurenceController.cs"
click node_booking_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Bookings/BookingController.cs"
click node_blog_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Blogs/BlogController.cs"
click node_content_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ContentBlocks/ContentBlocksController.cs"
click node_translation_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/TourTranslations/TourTranslationsController.cs"
click node_block_translation_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ContentBlockTranslations/BlockTranslationsController.cs"
click node_user_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Users/UserController.cs"
click node_favorites_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Favorites/FavoritesController.cs"
click node_notifications_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Notifications/NotificationsController.cs"
click node_upload_api "https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Upload/UploadFileController.cs"
click node_tour_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Tours/TourServices.cs"
click node_schedule_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/TourSchedules/ScheduleService.cs"
click node_occurrence_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ScheduleOccurences/ScheduleOccurenceService.cs"
click node_blog_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Blogs/BlogService.cs"
click node_content_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ContentBlocks/ContentBlockService.cs"
click node_tour_translation_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/TourTranslations/TourTranslationService.cs"
click node_blog_translation_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/BlogTranslations/BlogTranslationService.cs"
click node_block_translation_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ContentBlockTranslations/ContentBlockTranslationsService.cs"
click node_locale_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Localization/LocaleService.cs"
click node_booking_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Bookings/BookingService.cs"
click node_auth_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Auth/AuthService.cs"
click node_user_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Users/UserService.cs"
click node_favorites_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Favorites/FavoritesService.cs"
click node_notification_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Notifications/NotificationService.cs"
click node_email_service "https://github.com/nikakvaratskhelia/at-b/blob/master/Services/EmailServices/EmailService.cs"
click node_smtp "https://github.com/nikakvaratskhelia/at-b/blob/master/Common/Services/SmtpService.cs"
click node_uploader "https://github.com/nikakvaratskhelia/at-b/blob/master/Common/Services/Uploader/UploaderService.cs"
click node_database "https://github.com/nikakvaratskhelia/at-b/blob/master/Data/DataContext.cs"
click node_booking_model "https://github.com/nikakvaratskhelia/at-b/blob/master/Models/Booking.cs"
click node_tour_model "https://github.com/nikakvaratskhelia/at-b/blob/master/Models/Localized/Tours/Tour.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth_api,node_tour_api,node_schedule_api,node_occurrence_api,node_booking_api,node_blog_api,node_content_api,node_translation_api,node_block_translation_api,node_user_api,node_favorites_api,node_notifications_api,node_upload_api,node_visitor toneBlue
class node_tour_service,node_schedule_service,node_occurrence_service,node_tour_model toneAmber
class node_booking_service,node_auth_service,node_user_service,node_favorites_service,node_notification_service,node_booking_model toneMint
class node_blog_service,node_content_service,node_tour_translation_service,node_blog_translation_service,node_block_translation_service,node_locale_service toneRose
class node_email_service,node_smtp,node_uploader,node_database toneIndigo
```

## Components

### API endpoints

- [Authentication API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Auth/AuthController.cs): `Controllers/Auth/AuthController.cs`
- [Tours API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Tours/ToursController.cs): `Controllers/Tours/ToursController.cs`
- [Schedules API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Schedules/SchedulesController.cs): `Controllers/Schedules/SchedulesController.cs`
- [Occurrences API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ScheduleOccurences/ScheduleOccurenceController.cs): `Controllers/ScheduleOccurences/ScheduleOccurenceController.cs`
- [Bookings API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Bookings/BookingController.cs): `Controllers/Bookings/BookingController.cs`
- [Blogs API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Blogs/BlogController.cs): `Controllers/Blogs/BlogController.cs`
- [Content blocks API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ContentBlocks/ContentBlocksController.cs): `Controllers/ContentBlocks/ContentBlocksController.cs`
- [Translation APIs](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/TourTranslations/TourTranslationsController.cs): `Controllers/TourTranslations/TourTranslationsController.cs`
- [Block translations API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/ContentBlockTranslations/BlockTranslationsController.cs): `Controllers/ContentBlockTranslations/BlockTranslationsController.cs`
- [Users API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Users/UserController.cs): `Controllers/Users/UserController.cs`
- [Favorites API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Favorites/FavoritesController.cs): `Controllers/Favorites/FavoritesController.cs`
- [Notifications API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Notifications/NotificationsController.cs): `Controllers/Notifications/NotificationsController.cs`
- [Upload API](https://github.com/nikakvaratskhelia/at-b/blob/master/Controllers/Upload/UploadFileController.cs): `Controllers/Upload/UploadFileController.cs`

### Tourism catalog

- [Tour management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Tours/TourServices.cs): `Services/Tours/TourServices.cs`
- [Schedule management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/TourSchedules/ScheduleService.cs): `Services/TourSchedules/ScheduleService.cs`
- [Occurrence management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ScheduleOccurences/ScheduleOccurenceService.cs): `Services/ScheduleOccurences/ScheduleOccurenceService.cs`
- [Tour records](https://github.com/nikakvaratskhelia/at-b/blob/master/Models/Localized/Tours/Tour.cs): `Models/Localized/Tours/Tour.cs`

### Bookings and users

- [Booking workflow](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Bookings/BookingService.cs): `Services/Bookings/BookingService.cs`
- [Authentication](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Auth/AuthService.cs): `Services/Auth/AuthService.cs`
- [User management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Users/UserService.cs): `Services/Users/UserService.cs`
- [Favorites](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Favorites/FavoritesService.cs): `Services/Favorites/FavoritesService.cs`
- [Notifications](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Notifications/NotificationService.cs): `Services/Notifications/NotificationService.cs`
- [Booking records](https://github.com/nikakvaratskhelia/at-b/blob/master/Models/Booking.cs): `Models/Booking.cs`

### Localized content

- [Blog management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Blogs/BlogService.cs): `Services/Blogs/BlogService.cs`
- [Content blocks](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ContentBlocks/ContentBlockService.cs): `Services/ContentBlocks/ContentBlockService.cs`
- [Tour translations](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/TourTranslations/TourTranslationService.cs): `Services/TourTranslations/TourTranslationService.cs`
- [Blog translations](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/BlogTranslations/BlogTranslationService.cs): `Services/BlogTranslations/BlogTranslationService.cs`
- [Block translations](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/ContentBlockTranslations/ContentBlockTranslationsService.cs): `Services/ContentBlockTranslations/ContentBlockTranslationsService.cs`
- [Locale management](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/Localization/LocaleService.cs): `Services/Localization/LocaleService.cs`

### Shared services

- [Email delivery](https://github.com/nikakvaratskhelia/at-b/blob/master/Services/EmailServices/EmailService.cs): `Services/EmailServices/EmailService.cs`
- [SMTP service](https://github.com/nikakvaratskhelia/at-b/blob/master/Common/Services/SmtpService.cs): `Common/Services/SmtpService.cs`
- [File uploader](https://github.com/nikakvaratskhelia/at-b/blob/master/Common/Services/Uploader/UploaderService.cs): `Common/Services/Uploader/UploaderService.cs`
- [Application database](https://github.com/nikakvaratskhelia/at-b/blob/master/Data/DataContext.cs): `Data/DataContext.cs`

### Other components

- **API client**

## Connections

- API client → Authentication API: submits credentials
- API client → Tours API: browses tours
- API client → Bookings API: requests booking
- Authentication API → Authentication: delegates
- Tours API → Tour management: delegates
- Schedules API → Schedule management: delegates
- Occurrences API → Occurrence management: delegates
- Bookings API → Booking workflow: delegates
- Blogs API → Blog management: delegates
- Content blocks API → Content blocks: delegates
- Translation APIs → Tour translations: delegates
- Block translations API → Block translations: delegates
- Users API → User management: delegates
- Favorites API → Favorites: delegates
- Notifications API → Notifications: delegates
- Upload API → File uploader: delegates
- Tour management → Application database: reads and writes (evidence: `Services/Tours/TourServices.cs`)
- Schedule management → Application database: reads and writes (evidence: `Services/TourSchedules/ScheduleService.cs`)
- Blog management → Application database: reads and writes (evidence: `Services/Blogs/BlogService.cs`)
- Content blocks → Application database: reads and writes (evidence: `Services/ContentBlocks/ContentBlockService.cs`)
- Booking workflow → Application database: reads and writes (evidence: `Services/Bookings/BookingService.cs`)
- Authentication → Application database: reads and writes (evidence: `Services/Auth/AuthService.cs`)
- User management → Application database: reads and writes (evidence: `Services/Users/UserService.cs`)
- Locale management → Application database: reads and writes (evidence: `Services/Localization/LocaleService.cs`)
- Authentication → SMTP service: sends verification email (evidence: `Services/Auth/AuthService.cs`)
- Booking workflow → Notifications: creates notification (evidence: `Services/Bookings/BookingService.cs`)
- Booking workflow → SMTP service: sends booking email (evidence: `Services/Bookings/BookingService.cs`)
- Email delivery → SMTP service: uses SMTP
- Application database → Booking records: maps records (evidence: `Data/DataContext.cs`)
- Application database → Tour records: maps records (evidence: `Data/DataContext.cs`)
