An open API service indexing awesome lists of open source software.

https://github.com/technobre/powerutils.aspnetcore.errorhandler.responsetypes

Extensions to standardize ResponseType attributes with ProblemDetails
https://github.com/technobre/powerutils.aspnetcore.errorhandler.responsetypes

aspnetcore csharp dotnet errors

Last synced: 8 months ago
JSON representation

Extensions to standardize ResponseType attributes with ProblemDetails

Awesome Lists containing this project

README

          

# PowerUtils.AspNetCore.ErrorHandler.ResponseTypes

![Logo](https://raw.githubusercontent.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/main/assets/logo/logo_128x128.png)

***Extensions to standardize ResponseType attributes with ProblemDetails***

![Tests](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/actions/workflows/tests.yml/badge.svg)
[![Mutation tests](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTechNobre%2FPowerUtils.AspNetCore.ErrorHandler.ResponseTypes%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/main)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes&metric=coverage)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes&metric=bugs)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)

[![NuGet](https://img.shields.io/nuget/v/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes.svg)](https://www.nuget.org/packages/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)
[![Nuget](https://img.shields.io/nuget/dt/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes.svg)](https://www.nuget.org/packages/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes)
[![License: MIT](https://img.shields.io/github/license/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes.svg)](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/blob/main/LICENSE)

- [Support to](#support-to)
- [Dependencies](#dependencies)
- [How to use](#how-to-use)
- [Install NuGet package](#install-nuget-package)
- [Attributes](#attributes)
- [Contribution](#contribution)

## Support to
- .NET 9.0
- .NET 8.0
- .NET 7.0
- .NET 6.0
- .NET 5.0

## Dependencies

- Microsoft.AspNetCore.Mvc.Core [NuGet](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Core/)
- PowerUtils.AspNetCore.ErrorHandler [NuGet](https://www.nuget.org/packages/PowerUtils.AspNetCore.ErrorHandler/)

## How to use

### Install NuGet package
This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes

**Nuget**
```bash
Install-Package PowerUtils.AspNetCore.ErrorHandler.ResponseTypes
```

**.NET CLI**
```
dotnet add package PowerUtils.AspNetCore.ErrorHandler.ResponseTypes
```

### Attributes
- `Response400ProblemDetailsAttribute`
- `Response401ProblemDetailsAttribute`
- `Response403ProblemDetailsAttribute`
- `Response404ProblemDetailsAttribute`
- `Response409ProblemDetailsAttribute`
- `Response415ProblemDetailsAttribute`

## Contribution

If you have any questions, comments, or suggestions, please open an [issue](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/issues/new/choose) or create a [pull request](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler.ResponseTypes/compare)