Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mysticquest/dotnet-api-demo
A .NET 7.0 Rest API (ASP.NET controllers with a console app interface), utilizing entity framework and sqlite.
https://github.com/mysticquest/dotnet-api-demo
asp-net csharp dotnet dotnet7 entity-framework-core mvc sqlite
Last synced: about 2 hours ago
JSON representation
A .NET 7.0 Rest API (ASP.NET controllers with a console app interface), utilizing entity framework and sqlite.
- Host: GitHub
- URL: https://github.com/mysticquest/dotnet-api-demo
- Owner: MysticQuest
- Created: 2023-11-09T11:30:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T17:50:59.000Z (12 months ago)
- Last Synced: 2024-05-27T22:14:46.598Z (6 months ago)
- Topics: asp-net, csharp, dotnet, dotnet7, entity-framework-core, mvc, sqlite
- Language: C#
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASP.NET API, Console App & DB
The project launches both a console application and an ASP.NET API that listens on localhost.
- The Views project is a command line interface that calls the API application on localhost, for operations like printing, deleting, and retrieving records.
- The Services project includes an ASP.NET API app that hosts endpoints for CRUD operations, dynamically handling service types for different data models. It also includes the startup configuration for the application.
- The Models project contains data models that represent the structure of records stored in the database.
- The DataAccess project manages the Entity Framework Core DbContext and migrations for SQLite database interactions.### Functionality:
The API can perform tasks such as pinging a domain or querying a remote API, capturing the response, and persisting it as an entry in the database. The user can interact with stored data through provided API endpoints, enabling operations such as retrieval, deletion, and listing of all entries.### Required:
In order to generate the sqlite database type the following command in the Package Manager Console:```Update-Database -Project DataAccess -StartupProject Services```
### Notes:
The Controller and its API endpoints are used for both models and gets the correct type of service dynamically (for testing purposes).### TO DO:
- Let the user pick any domain/API endpoint.
- Let the user make mass requests.
- Auto-clean db.