Contains API code
Go to file
2025-09-16 16:49:49 +00:00
App_Start Code Commit 2025-09-04 17:30:22 +05:30
Common Code Commit 2025-09-04 17:30:22 +05:30
CommonAuthorization Code Commit 2025-09-04 17:30:22 +05:30
Content Code Commit 2025-09-04 17:30:22 +05:30
Controllers Code Commit 2025-09-04 17:30:22 +05:30
Downloads Code Commit 2025-09-04 17:30:22 +05:30
Filters Code Commit 2025-09-04 17:30:22 +05:30
Images Code Commit 2025-09-04 17:30:22 +05:30
Models Code Commit 2025-09-04 17:30:22 +05:30
packages Code Commit 2025-09-04 17:30:22 +05:30
Properties Code Commit 2025-09-04 17:30:22 +05:30
Scripts Code Commit 2025-09-04 17:30:22 +05:30
Service References Code Commit 2025-09-04 17:30:22 +05:30
Templates/Excel/Reports Code Commit 2025-09-04 17:30:22 +05:30
Utility Code Commit 2025-09-04 17:30:22 +05:30
Views Code Commit 2025-09-04 17:30:22 +05:30
.gitignore Code Commit 2025-09-04 17:30:22 +05:30
bin.rar Code Commit 2025-09-04 17:30:22 +05:30
ClassDiagram1.cd Code Commit 2025-09-04 17:30:22 +05:30
eicher-eos-androidx-firebase-adminsdk-ktgak-672079a6c8.json Code Commit 2025-09-04 17:30:22 +05:30
favicon.ico Code Commit 2025-09-04 17:30:22 +05:30
Global.asax Code Commit 2025-09-04 17:30:22 +05:30
Global.asax.cs Code Commit 2025-09-04 17:30:22 +05:30
packages.config Code Commit 2025-09-04 17:30:22 +05:30
README.md Upload files to "/" 2025-09-16 16:49:49 +00:00
UpgradeLog.htm Code Commit 2025-09-04 17:30:22 +05:30
VECV_WebApi.csproj Code Commit 2025-09-04 17:30:22 +05:30
VECV_WebApi.csproj.user Code Commit 2025-09-04 17:30:22 +05:30
VECV_WebApi.sln Code Commit 2025-09-04 17:30:22 +05:30
VECV_WebApi.v11.suo Code Commit 2025-09-04 17:30:22 +05:30
Web.config Code Commit 2025-09-04 17:30:22 +05:30
Web.Debug.config Code Commit 2025-09-04 17:30:22 +05:30
Web.Release.config Code Commit 2025-09-04 17:30:22 +05:30

README — EOSWebAPI (.NET Web API Project)

This README provides setup and configuration details for the EOSWebAPI project. The application is an ASP.NET Web API project backed by PostgreSQL databases, using Entity Framework and DotNetOpenAuth for authentication support.


Table of contents

  1. Overview
  2. Prerequisites
  3. Project structure
  4. Configuration (Web.config)
  5. Database setup
  6. Build & run instructions
  7. Deployment notes
  8. Troubleshooting
  9. Contact / maintainers

1. Overview

EOSWebAPI is a Web API project designed to expose services for the EOS platform.
It includes:

  • ASP.NET Web API backend.
  • Entity Framework 6 ORM.
  • PostgreSQL databases (eos, eos_tracking, etc.).
  • OAuth/OpenID support (DotNetOpenAuth).

2. Prerequisites

  • .NET Framework 4.6+ (Web.config targets ASP.NET Web API).
  • Visual Studio (2019 or later recommended).
  • PostgreSQL (v12 or higher).
  • NuGet packages: EntityFramework, Npgsql (PostgreSQL driver), DotNetOpenAuth.

3. Project structure

Typical key folders:

  • Controllers/ → API endpoints.
  • Models/ → Entity Framework models.
  • App_Start/ → Route config, filters, dependency injection.
  • Web.config → Core configuration file (DB connections, EF, authentication).

4. Configuration (Web.config)

Connection Strings

Defined in <connectionStrings>:

  • Production (default active)
    <add name="Vecv_Tracking" connectionString="Server=127.0.0.1;Port=5432;User Id=;Password=;Database=eos_secound_release_tracking_uat;" />
    <add name="Vecv_GoData" connectionString="Server=127.0.0.1;Port=5432;User Id=;Password=;Database=eos;CommandTimeout=2000;" />
    
  • QA / UAT (commented out for switching)

⚠️ Replace User Id and Password with actual credentials before deployment.

Entity Framework

Configured for EF6 via <entityFramework> section.
Used to manage migrations and database interactions with PostgreSQL.

DotNetOpenAuth

Sections included for:

  • OAuth
  • OpenID
  • Messaging & reporting

5. Database setup

  1. Install PostgreSQL (v12+).
  2. Create required databases:
    • eos (main data).
    • eos_tracking (tracking data).
  3. Apply schema SQL scripts (see EOS database README).
  4. Update Web.config connection strings with correct credentials.

6. Build & run instructions

  1. Open EOSWebAPI.sln in Visual Studio.
  2. Restore NuGet packages.
  3. Build solution (Ctrl+Shift+B).
  4. Run with IIS Express or configure IIS for hosting.
  5. API should be accessible at:
    https://localhost:xxxx/api/{controller}/{action}
    

7. Deployment notes

  • Deploy to IIS / Windows Server.
  • Ensure correct environment connection strings are uncommented in Web.config.
  • Use web.config transforms (Web.Release.config, Web.Debug.config) for automated switching between environments.
  • Configure logging (Serilog/NLog recommended).

8. Troubleshooting

  • Login/auth issues → check DotNetOpenAuth sections & OAuth client setup.
  • DB connection errors → validate Server, Port, Database, User Id, Password.
  • Timeouts → adjust CommandTimeout in connection strings.
  • Entity Framework migrations → run:
    Update-Database -Verbose
    

9. Contact / maintainers

  • Maintainer: (team/person name, email)
  • Project: EOSWebAPI