Invoking REST Endpoints That Return JSON Arrays with Spring RestTemplate
Setting Up the HTTP Client
A customized RestTemplate bean provides fine-graineed control over connection behavior. The configuration below binds a request factory with a timeout setting.
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.SimpleC ...
Posted on Wed, 10 Jun 2026 18:20:25 +0000 by jdh
User Management API Documentation
User Count Retrieval
Endpoint
POST /api/users/count
Parameters
Name
Type
Required
Description
query
string
No
Search by username or phone
active
string
No
Filter: all, true, false
Response
{
"status": 200,
"result": {
"totalUsers": 150
}
}
User List Retrieval
Endpoint
POST /api/users
Parame ...
Posted on Thu, 04 Jun 2026 18:26:50 +0000 by racing_fire
Data Storage and Microservices in ASP.NET Core
Understanding HTTP
Before diving into REST, you should have a solid understanding of the Hypertext Transfer Protocol (HTTP). HTTP was created in 1989 by Tim Berners-Lee at CERN, the European Organization for Nuclear Rseearch. In the early days of computing, researchers would publish their findings in physical journals, which meant lengthy turna ...
Posted on Wed, 20 May 2026 19:06:03 +0000 by joix
Essential Spring MVC Annotations for Web Development
@Controller
Applied at the class level, @Controller marks a class as a Spring MVC controller and registers it as a Spring bean. The DispatcherServlet automatically detects such classes and routes incoming HTTP requests to methods annotated with @RequestMapping. This annotation is specifically intended for web controllers—use @Component or other ...
Posted on Fri, 08 May 2026 21:44:59 +0000 by weiwei
Comparing HttpClient and WebRequest for HTTP Requests in C#
API Design
HttpClient provides a cleaner, more intuitive API compared to WebRequest. The framework encapsulates HTTP request components—methods, URLs, headers, and body content—into dedicated objects, streamlining development.
Sending a GET request with HttpClient requires a single call to GetAsync(url), while POST requests use PostAsync(url, c ...
Posted on Fri, 08 May 2026 14:27:25 +0000 by james_holden