https://github.com/naralc/code-snippets-api
A minimal API which lets us write and fetch code snippets — useful when we can't memorize everything.
https://github.com/naralc/code-snippets-api
azure csharp dependency-injection docker dotnet-6 entity-framework-core minimal-api ms-sql-server
Last synced: 4 months ago
JSON representation
A minimal API which lets us write and fetch code snippets — useful when we can't memorize everything.
- Host: GitHub
- URL: https://github.com/naralc/code-snippets-api
- Owner: NaralC
- Created: 2022-06-26T15:07:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T15:11:02.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T14:22:19.404Z (6 months ago)
- Topics: azure, csharp, dependency-injection, docker, dotnet-6, entity-framework-core, minimal-api, ms-sql-server
- Language: C#
- Homepage: http://minimalapi.uksouth.azurecontainer.io/swagger
- Size: 1.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Command Line Code Snippets Minimal API
### The application lets us create, read, update, and delete command line snippets stored on Azure's Cloud — ideal when we don't want to remember everything.
### Link to site
> - http://minimalapi.uksouth.azurecontainer.io/swagger (it's down for now since my Azure credit's out)
#### With the introduction of countless backend and deployment concepts during my first internship, I aim to practice and broaden my understanding of them. Such concepts and technologies include, but are not limited to:
- .NET and C# in General
- MS SQL Server Management Studio
- Dependency Injection
- Object-Relational Mapping (with Auto Mapper)
- Entity Framework (utilize Code-First approach for data migration)
- Docker Build & Docker Compose
- Azure (SQL Server + Container Instance)
- Testing endpoints with Swagger### Overall architecture of our (minimal) API compared to an MVC one

> The main difference is integrating controllers with Program.cs — essentially a barebone version of MVC### Features missing from our (minimal) API compared to an MVC one:
- Model Validation (the ability to evaluate whether controllers are doing their jobs properly)
- JSONPatch (the ability to partially update a model, instead of entirely replacing it)
- Filters (the ability to inject extra logic at different stages, such as user authorization)### Testing endpoints with Swagger UI
> ### Azure Container Instance Dashboard
> References:
> - https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api
> - https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis