Introduction
Alert.CA.CameraEnvironment.API
A .NET 8 Web API for managing and monitoring camera environments, designed for integration with Azure services.
Features
- Secure configuration with Azure App Configuration and Key Vault
- Integration with Azure Cosmos DB (via options pattern)
- OpenAPI/Swagger documentation
- Azure AD authentication
- .NET 8 and C# 12 support
Getting Started
Prerequisites
- .NET 8 SDK
- Azure CLI (for local development)
- Access to Azure App Configuration and Key Vault (for secrets/config)
Installation
- Clone the repository:
- Set up user secrets (for local development):
- Restore dependencies:
Configuration
- The API expects an Azure App Configuration endpoint in
ConnectionStrings:AppConfig. - Cosmos DB options are configured via Azure App Configuration.
Running the API
The API will be available at https://localhost:5001 (or as configured).
Build and Test
- To build the project:
- To run tests (if available):
API Documentation
- Swagger UI is available at
/swaggerwhen running the API locally. - OpenAPI definitions are generated automatically.
Contribute
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature) - Commit your changes
- Push to your fork and submit a pull request
Please ensure your code follows the existing style and includes appropriate tests.
Resources
License
This project is licensed under the MIT License.