Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubagdynia/minimalapiwithefcoreandsqlite
Minimal API with EntityFramework Core and SQLite
https://github.com/kubagdynia/minimalapiwithefcoreandsqlite
Last synced: 8 days ago
JSON representation
Minimal API with EntityFramework Core and SQLite
- Host: GitHub
- URL: https://github.com/kubagdynia/minimalapiwithefcoreandsqlite
- Owner: kubagdynia
- License: mit
- Created: 2024-07-28T17:01:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T18:55:29.000Z (14 days ago)
- Last Synced: 2024-10-30T19:36:40.859Z (14 days ago)
- Language: C#
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MinimalApiWithEFCoreAndSQLite
Minimal API with EntityFramework Core and SQLite### CRUD operations
- **POST** /api/rpgCharacters
Creates a new RpgCharacter
- **GET** /api/rpgCharacters
Gets all RpgCharacters
- **GET** /api/rpgCharacters/{id}
Gets a specific RpgCharacter
- **PUT** /api/rpgCharacters/{id}
Updates a specific RpgCharacter
- **DELETE** /api/rpgCharacters/{id}
Deletes a specific RpgCharacter![](Doc/api.jpg)
### How to start the REST API
- Download and install [.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
- Running the API project from the command line
```
dotnet run --project .\Api
```
- Open the API documentation in your browser
```
http://localhost:5086/swagger
```
- Database and all migrations will be created when the application is launched### Technologies
List of technologies, frameworks and libraries used for implementation:
- [.NET 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) (platform)
- [SQLite](https://www.sqlite.org/) (database)
- [EF Core 8](https://learn.microsoft.com/en-us/ef/core/) (ORM)