https://github.com/davidelettieri/apiwithrop
Sample solution using ROP in ASP.NET Core
https://github.com/davidelettieri/apiwithrop
csharp railway-oriented-programming
Last synced: 9 days ago
JSON representation
Sample solution using ROP in ASP.NET Core
- Host: GitHub
- URL: https://github.com/davidelettieri/apiwithrop
- Owner: davidelettieri
- License: mit
- Created: 2021-09-26T22:10:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T06:09:57.000Z (over 4 years ago)
- Last Synced: 2025-03-16T03:56:49.440Z (over 1 year ago)
- Topics: csharp, railway-oriented-programming
- Language: C#
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ApiWithROP
Example solution to show how to use ROP with ASP.NET Core. The approach is opinionated, I find it useful but it may not be for you or your use case.
## Installing the ROP nuget package
In order to install the ROP nuget package, published here on github, I followed [this](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-with-a-personal-access-token). The file nuget.config.sample is mostly complete, it needs the username to be changed and a token with access "read" to the nuget packages.
## Trasforming a Result to an object result
### Using http status code 403
### The Errors class
## Swagger