How mluker/seis630_final works
Project type and purpose
• This is a backend-only RESTful Weather API built in ASP.NET Core (C#).
• Purpose: collect/store weather readings by location, run trend and summary reports, expose endpoints for CRUD operations and analytics.
File structure
• Top-level project “WeatherApi” is a single ASP.NET Core solution (.sln).
• Subfolders:
• Data – EF Core DbContext (WeatherDbContext), seed data (DbSeedData)
• Models – POCO classes (Location, WeatherData)
• Endpoints – grouped by feature (Locations, Weather, Reports), each containing extension methods or minimal-API handlers
• Properties – launchSettings for local development
• appsettings.template – configuration template (e.g., connection strings)
• Program.cs wires up hosting, middleware, service registrations, and endpoint mappings.
• WeatherApi.csproj defines NuGet dependencies (EF Core, SQL provider, ASP.NET Core packages).
README for additional insights
• Confirms use of ASP.NET Core, EF Core, Azure SQL, RESTful design.
• Two main entities: Location ↔ WeatherData (1-to-many).
• Insomnia collection provided for testing.
• Intended for educational/demo use in a database class but follows real-world layering.
Detailed elements
• Program.cs / Startup
• Endpoint modules (LocationEndpoints, WeatherEndpoints, ReportEndpoints)
• Data folder (WeatherDbContext, DbSeedData)
• Models folder (Location, WeatherData)
• Insomnia (REST client) or placeholder “Client Apps”