BEYOND Status Codes! Better REST HTTP API Error Responses

BEYOND Status Codes! Better REST HTTP API Error Responses

How do you tell your API Consumers explicitly if there are errors or problems with their request? Everyone creating HTTP APIs seems to implement error responses differently. Wouldn't it be great if HTTP API Errors had a standard?

How do you tell your API Consumers explicitly if there are errors or problems with their request? Everyone creating HTTP APIs seems to implement error responses differently. Wouldn't it be great if HTTP API Errors had a standard? Well there is! It's called Problem Details (https://tools.ietf.org/html/rfc7807)

https://www.nuget.org/packages/Hellang.Middleware.ProblemDetails/

๐Ÿ”” Subscribe: https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw?sub_confirmation=1

๐Ÿ’ฅ Join this channel to get access to source code, demos, and slides! https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw/join

๐Ÿ“ Blog: https://codeopinion.com

๐Ÿ“š Book Recommendations

Domain-Driven Design https://amzn.to/2QwG8sb

Patterns of Enterprise Application Architecture https://amzn.to/3d8kMJj

Refactoring: Improving the Design of Existing Code https://amzn.to/2NVdP5Q

Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith https://amzn.to/3srUuZ6

RESTful Web Clients: Enabling Reuse Through Hypermedia https://amzn.to/3d8Q96B

0:00 Error Examples 1:46 Problem Details 5:01 ASP.NET Core Controllers 6:21 Middleware

CodeOpinon: https://codeopinion.com Twitter: https://twitter.com/codeopinion

#softwarearchitecture #httpapi #restapi

softwarearchitecture httpapi restapi

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Integrate Spring RestAPIs with @JsonView ยป grokonez

In the previous post, We had learned how to use @JsonView to serialize/de-serialize Java objects. Now we go to next step, JavaSampleApproach shows you how to integrate Spring RestAPIs with @JsonView to customize views and resolve infinity loop problem. Related posts: โ€“ How to use @JsonView to serialize/de-serialize and customize JSON format from Java Object. โ€ฆ Continue reading "Integrate Spring RestAPIs with @JsonView"

SpringBoot WebFlux Functional RestAPIs ยป grokonez

Reactive programming is about non-blocking applications. And Spring Framework 5 includes a new spring-webflux module, supports Reactive Streams for communicating backpressure across async components and libraries. So in the tutorial, JavaSampleApproach will guide you through the steps for creating a SpringBoot WebFlux Functional restful APIs. Related posts: โ€“ SpringBoot WebFlux Annotation-based RestAPIs โ€“ Reactor โ€“ โ€ฆ Continue reading "SpringBoot WebFlux Functional RestAPIs"

SpringBoot RestAPIs CRUD Application with MySQL Examples

In the tutorial, I will introduce how to create a Fullstack SpringBoot RestAPIs CRUD Application to MySQL database using Spring WEB MVC framework and Spring JPA for building Backend and using Bootstrap, JQuery Ajax for building frontend client Related posts: Spring Boot Security JWT Authentication Example โ€“ MySQL/PostgreSQL + Spring JPA + RestAPIs Angular CRUD โ€ฆ Continue reading "SpringBoot RestAPIs CRUD Application with MySQL Examples โ€“ FullStack: Frontend (Bootstrap + Ajax JavaScript) to Backend (SpringBoot + MySQL)"

Amazon S3 - Delete File SpringBoot RestAPI ยป grokonez

In the tutorial, we build a SpringBoot RestAPIs to Delete files in a Amazon S3 bucket. Previous post: โ€“ Amazon S3 โ€“ SpringBoot RestAPIs Upload/Download File/Image to S3 ContentsTechnologiesAmazonS3 Delete File APIPracticeImplement S3 Delete Files serviceExpose Delete Files RestAPIRun & Check resultsSourceCode Technologies Java 8 Maven 3.6.1 Spring Tool Suite: 3.9.4.RELEASE Spring Boot: 2.0.4.RELEASE Amazon โ€ฆ Continue reading "Amazon S3 โ€“ Delete File SpringBoot RestAPI"

Amazon S3 - Delete File SpringBoot RestAPI - ozenero

In the tutorial, we build a SpringBoot RestAPIs to Delete files in a Amazon S3 bucket. Previous post: โ€“ Amazon S3 โ€“ SpringBoot RestAPIs Upload/Download File/Image to S3 Technologies Java 8 Maven 3.6.1 Spring Tool Suite: 3.9.4.RELEASE Spring Boot: 2.0.4.RELEASE Amazon S3 AmazonS3 Delete File API We use delete API in com.amazonaws.services.s3.AmazonS3.java -> public void โ€ฆ Continue reading "Amazon S3 โ€“ Delete File SpringBoot RestAPI"