Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guidesmiths/dotnetcore-api
A .NET Core API example
https://github.com/guidesmiths/dotnetcore-api
Last synced: about 1 month ago
JSON representation
A .NET Core API example
- Host: GitHub
- URL: https://github.com/guidesmiths/dotnetcore-api
- Owner: guidesmiths
- Created: 2020-05-13T07:20:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T23:28:53.000Z (almost 2 years ago)
- Last Synced: 2024-12-18T09:45:20.670Z (about 1 month ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .Net Core API
This is a sample project of how to use .Net Core for a Web API.
It uses MongoDB as a data storage service, it also uses `Swashbuckle` to autogenerate the API docs in Swagger format.## How to run it
1. Execute `docker-compose up` on the `Docker` directory
2. Execute `dotnet build`
3. Execute `dotnet run`## Usage
- Retrieve some books `curl --insecure https://localhost:5001/api/books`
- Get API docs `https://localhost:5001/swagger/index.html`## How to run it (Docker)
1. Execute `docker build -t SampleAPI .`
2. Execute `docker run -p 8080:80 SampleAPI`