Blog: mscharhag (Michael Scharhag)

240 blogs updated: 94 min. ago
A standardized error format for HTTP responses
HTTP uses status codes to indicate the result of the servers attempt to satisfy the request. In case the server is unable to process the req...
15-08-2022 18:11:45 mscharhag (Michael Scharhag) Advanced
HTTP - Content negotiation
With HTTP, resources are identified using URIs. And a uniquely identified resource might support multiple resource representations. A repres...
22-11-2021 18:48:45 mscharhag (Michael Scharhag) Advanced
Avoid leaking domain logic
Many software architectures try to separate domain logic from other parts of the application. To follow this practice we always need to know...
01-11-2021 12:29:01 mscharhag (Michael Scharhag) Advanced
Media types and the Content-Type header
A Media type (formerly known as MIME type) is an identifier for file formats and format contents. Media types are used by different internet...
06-10-2021 21:52:10 mscharhag (Michael Scharhag) Advanced
From layers to onions and hexagons
In this post we will explore the transition from a classic layered software architecture to a hexagonal architecture. The hexagonal architec...
20-09-2021 18:33:57 mscharhag (Michael Scharhag) Advanced
File down- and uploads in RESTful web services
Usually we use standard data exchange formats like JSON or XML with REST web services. However, many REST services have at least some operat...
28-07-2021 21:47:03 mscharhag (Michael Scharhag) Advanced
Kotlin: Type conversion with adapters
In this post we will learn how we can use Kotlin extension functions to provide a simple and elegant type conversion mechanism. Maybe you ha...
27-06-2021 21:36:31 mscharhag (Michael Scharhag) Advanced
Making POST and PATCH requests idempotent
In an earlier post about idempotency and safety of HTTP methods we learned that idempotency is a positive API feature. It helps making an AP...
13-06-2021 18:17:12 mscharhag (Michael Scharhag) Advanced
Providing useful API error messages with Spring Boot
For API users it is quite important an API provides useful error messages. Otherwise, it can be hard to figure out why things do not work. D...
31-05-2021 00:26:24 mscharhag (Michael Scharhag) Advanced
Supporting bulk operations in REST APIs
Bulk (or batch) operations are used to perform an action on more than one resource in single request. This can help reduce networking overhe...
03-05-2021 17:21:34 mscharhag (Michael Scharhag) Advanced

© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.

Made better & faster using Java Profiler