Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Migrate exception handler to Arcus approach #34

Open tomkerkhove opened 5 years ago

tomkerkhove commented 5 years ago

Migrate exception handler to Arcus approach - https://github.com/arcus-azure/arcus.webapi/issues/14

MassimoC commented 5 years ago

in the first implementation we are returning the problem+json without external libs / custom middleware. not the more elegant approach.

MassimoC commented 5 years ago

TODO : validate what is the best approach problem+json is returned for 4XX and 5XX

tomkerkhove commented 5 years ago

Just FYI but we are planning to provide this all via Arcus, how it will look like it not defined yet.

MassimoC commented 5 years ago

I wanted to add to the PR #73 the first basic implementation. When Arcus will be ready, we will migrate.