Tagged articles
RESTful API
54 articles · Page 1 of 1
This article walks through designing a clean, unified API response format with categorized error codes, then shows how to automate response wrapping in Spring Boot using a custom @ResponseResult annotation, a handler interceptor, and ResponseBodyAdvice so controllers return plain domain objects while the framework handles consistent JSON serialization.
@ControllerAdviceAPI DesignCustom Annotation
0 likes · 9 min read

The article analyzes why kkFileView, an open‑source Spring Boot microservice that leverages LibreOffice for document conversion, has become the go‑to solution for browser‑based file preview by examining its architecture, workflow, feature set, deployment options, performance tweaks, and comparisons with other approaches.
DockerLibreOfficeRESTful API
0 likes · 16 min read

A comprehensive guide to building production-ready RESTful APIs using Spring Boot, covering resource naming conventions, HTTP verb semantics, unified response formats, global exception handling with @RestControllerAdvice, declarative validation via Hibernate Validator including group validation and custom constraints, distributed rate limiting with Redis and Lua scripts, and automated API documentation with SpringDoc OpenAPI.
Global Exception HandlingHibernate ValidatorJava Backend Development
0 likes · 15 min read

Moltbook is a pioneering AI‑only social platform that lets agents post, comment and like, built with a Next.js front‑end, RESTful API back‑end, semantic vector search, heartbeat checks, dual human/agent modes and strict rate‑limiting to encourage quality over quantity while addressing scalability and security challenges.
MoltbookNext.jsRESTful API
0 likes · 18 min read

This article walks through building a reusable BaseController using MyBatisPlusPro in a Spring Boot application, covering dependency setup, utility methods for query conversion, generic CRUD endpoints, pagination configuration, and how to extend the controller for specific entities, providing ready‑to‑use code snippets for each step.
CRUDJavaMybatisPlus
0 likes · 10 min read

This tutorial walks you through creating a reusable BaseController in Spring Boot using MyBatis‑Plus, introducing a utility class for dynamic query building, configuring pagination support, and extending the controller for any entity to instantly gain full CRUD, list, pagination, sorting, and count operations.
CRUDJavaMybatisPlus
0 likes · 11 min read

This comprehensive guide explains how to design high‑quality Spring Boot controller layers, covering architecture planning, RESTful API conventions, parameter validation, unified response structures, exception handling, logging, security, testing, asynchronous processing, and performance optimization with practical code examples and clear best‑practice recommendations.
Best PracticesControllerException Handling
0 likes · 15 min read

This tutorial shows how to extend MyBatis‑Plus functionality to the controller layer by creating a reusable BaseController, utility methods, pagination configuration, and concrete controllers, enabling full CRUD, list, page, and count operations with minimal code.
CRUDJavaMybatisPlus
0 likes · 9 min read

This tutorial walks you through setting up a Go environment, initializing a project, and using the high‑performance Gin framework to create a complete RESTful API with CRUD operations, middleware for logging and authentication, error handling, project structure optimization, and deployment best practices.
CRUDGinGo
0 likes · 9 min read

This article walks you through creating a reusable BaseController using MyBatisPlusPro, including dependency setup, utility methods for reflection, a generic CRUD controller, pagination configuration, and how to extend it in your own Spring Boot applications.
BaseControllerCRUDJava
0 likes · 9 min read

This article demonstrates how to build a lightweight OCR service in Java using SpringBoot and the Tess4j library, covering dependency setup, Tesseract engine initialization, RESTful API creation, training data options, and deployment considerations.
OCRRESTful APISpringBoot
0 likes · 7 min read

This article explains how SpringBoot's @PathVariable annotation automatically binds URL path parameters to method arguments, simplifying RESTful API development, reducing boilerplate code, and improving maintainability, with examples and advanced usage tips for developers.
JavaPathVariableRESTful API
0 likes · 7 min read

This article demonstrates how to automate CRUD functionality in a Spring Boot application by adding MyBatisPlus, creating utility methods for query building and reflection, implementing a generic BaseController, configuring pagination support, and extending the controller for specific entities, providing a reusable RESTful API template.
BaseControllerCRUDJava
0 likes · 11 min read

Learn how to set up the lightweight Meilisearch engine using Docker, explore its rapid instant‑search features, and perform index, settings, document, and query operations via RESTful API and curl commands, all illustrated with step‑by‑step examples and screenshots.
DockerMeilisearchRESTful API
0 likes · 9 min read

This guide introduces Meilisearch, a lightweight, fast search engine with RESTful API, covering its features, Docker installation, index and settings management, document operations, and advanced search queries, while also showcasing a real‑world SpringBoot‑Vue e‑commerce project that integrates Meilisearch for instant, accurate results.
BackendDockerIndexing
0 likes · 10 min read

This article introduces the fundamentals of RESTful APIs and demonstrates how to install the Python requests library, send GET, POST, PUT, and DELETE requests, set custom headers, handle responses, manage sessions, and apply best‑practice tips for reliable API testing.
HTTPRESTful APIbackend development
0 likes · 6 min read

This article examines the rise of microservice architecture and compares major communication mechanisms—RESTful APIs, gRPC, and message queues—guiding developers on selecting the most suitable approach based on business requirements, system scale, and team expertise.
BackendMessage QueueRESTful API
0 likes · 14 min read

This tutorial walks you through creating a Spring Boot project, defining a REST controller, running the application, testing the endpoint, expanding CRUD methods, configuring properties, and optionally adding service and repository layers, all with clear code examples.
JavaRESTful APISpring Boot
0 likes · 8 min read

This comprehensive tutorial explains how to design and implement RESTful APIs with Spring Boot 3.2.5, covering all major HTTP methods (GET, HEAD, POST, PUT, DELETE, PATCH), best‑practice endpoint design, response handling, status‑code usage, pagination, filtering, versioning, caching, and security considerations.
HTTP MethodsRESTful APISpring Boot
0 likes · 17 min read

A RESTful API is an HTTP‑based design that treats each resource as a URI, uses standard verbs (GET, POST, PUT, PATCH, DELETE) for CRUD operations, returns appropriate status codes, supports content negotiation, versioned secure endpoints, clear noun‑based naming, pagination, filtering, HATEOAS links, and avoids embedding actions or verbs in URLs.
API DesignHTTPRESTful API
0 likes · 8 min read

This tutorial introduces the Gin web framework for Go, covering its core features, installation steps, a simple "Hello World" example, request and response handling, parameter binding, route groups, middleware patterns, and useful utilities for building fast RESTful services.
GinGoRESTful API
0 likes · 13 min read

This article introduces the concepts and core principles of RESTful APIs and provides a step‑by‑step Python Flask tutorial, including environment setup, code examples for CRUD operations, and guidance on testing, authentication, error handling, and versioning.
API DesignBackendFlask
0 likes · 6 min read

This article explains how to design a unified business error‑code system for RESTful APIs, demonstrates the structure and format of such codes, provides a Go implementation with structs, interfaces and formatting methods, and shows practical usage in a Gin web server including logging and notification strategies.
BackendGinGo
0 likes · 22 min read

This article demonstrates how to automate CRUD operations in a Spring Boot application by leveraging MyBatisPlus, creating utility methods, a generic BaseController, pagination configuration, and extending it in concrete controllers, providing reusable code for rapid backend development.
JavaMybatisPlusRESTful API
0 likes · 9 min read

This tutorial demonstrates how to automate CRUD functionality in a Spring Boot application by introducing MyBatisPlus, creating a reusable utility class, configuring pagination, and implementing a generic BaseController that can be extended by concrete controllers for any entity.
CRUDGeneric ControllerJava
0 likes · 11 min read

The article examines common misconceptions in RESTful API design, explaining why developers often limit interfaces to GET and POST, why some APIs return only HTTP 200 status codes, and how to decide the proper use of other methods and status codes for empty results.
API DesignHTTP MethodsRESTful API
0 likes · 17 min read

This guide walks through using the TuGraph graph database to design and deploy graph applications, covering real‑world scenarios, database selection, built‑in datasets, Docker/CentOS/Ubuntu deployment, model design, data import, debugging, operational monitoring, and integration with services or direct RESTful APIs.
Data ModelingRESTful APITuGraph
0 likes · 11 min read

This article explains what RESTful APIs are, outlines their architectural constraints, shares practical design guidelines such as using nouns in URIs, proper HTTP methods, status codes, versioning strategies, and demonstrates how Apache APISIX can enforce these practices and modernize legacy APIs without changing existing code.
API DesignAPISIXHTTP Methods
0 likes · 12 min read

This article details the overall backend architecture, module relationships, RESTful API design, database schemas, authentication flow, activity creation process, JSON schema validation, component platform APIs, and server‑side rendering considerations for a Node.js‑based service supporting editors, components, and end‑user pages.
JWTMongoDBMySQL
0 likes · 22 min read

This article examines the reasons behind mandating POST for all API endpoints, compares GET and POST characteristics, discusses the practical implications of such a policy, and offers guidance on when each HTTP method is appropriate for backend development.
API DesignGET vs POSTHTTP Methods
0 likes · 8 min read

This article revisits RESTful API design using Go Web, covering twelve practical guidelines such as JSON usage, verb‑free and pluralized paths, hierarchical resources, pagination, unified response formats, proper HTTP status codes, versioning, HTTPS, and documentation to help developers build clear, consistent, and secure APIs.
API DesignBackendGin
0 likes · 9 min read


21CTOAug 15, 2021 · Artificial Intelligence
Gorse is an open‑source Go recommendation system that automates model selection, supports distributed training and prediction, offers a RESTful API and dashboard, and stores data in MySQL/MongoDB with Redis caching, enabling fast integration of personalized suggestions into online services.
GoRESTful APIRecommendation System
0 likes · 3 min read

This article presents a comprehensive set of practical guidelines for Spring Cloud microservice development, covering Maven project structure, core and starter modules, versioning conventions, service invocation via SDK and Feign, RESTful API design rules, and gateway responsibilities such as access control and gray release.
FeignGatewayJava
0 likes · 7 min read

This tutorial explains the concept of idempotency, why it is needed for reliable APIs, the impact on system design, and provides four implementation strategies—including a detailed SpringBoot example that uses Redis tokens, Lua scripts, and unit tests—to ensure that repeated requests produce the same result without side effects.
IdempotencyJavaRESTful API
0 likes · 18 min read

This article explains the concept of idempotency, why it is needed for HTTP interfaces, its impact on system design, and presents four practical backend solutions—including database primary keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—followed by a complete SpringBoot example with Maven dependencies, Redis configuration, token utility code, controller, application starter, and test cases.
IdempotencyJavaRESTful API
0 likes · 20 min read

The article outlines the evolution of microservice architecture, its advantages, four concrete design principles—including AKF splitting, front‑end/back‑end separation, stateless services, and RESTful communication—while also discussing common challenges and practical mitigation strategies.
Design PrinciplesRESTful APIStateless Services
0 likes · 10 min read

This article explains how to design and implement elegant RESTful APIs using ThinkJS, covering routing conventions, controller generation, custom router configuration, CRUD action mapping, token‑based authentication, permission validation with Logic layers, inheritance for reusable checks, and database operations with chainable queries.
BackendNode.jsRESTful API
0 likes · 13 min read

This article analyzes the shortcomings of the existing RESTful Node BFF service for Qunar's domestic hotel platform—such as data customization difficulty, manual documentation, and redundant fields—and demonstrates how adopting GraphQL can provide precise data fetching, automatic schema documentation, and unified request composition to improve development efficiency and system performance.
API DesignData CustomizationGraphQL
0 likes · 19 min read


21CTOJul 22, 2020 · Information Security
This article explains the critical importance of securing RESTful APIs—covering data protection, DoS risks, and business impact—and outlines practical measures such as authentication, API keys, access control, rate limiting, and input validation with code examples.
API SecurityAuthenticationRESTful API
0 likes · 8 min read

This tutorial walks you through Spring Boot 2.x fundamentals, explaining core MVC annotations, defining a User entity with Lombok, creating a full RESTful CRUD controller, and writing comprehensive MockMvc unit tests to verify each endpoint.
JavaLombokRESTful API
0 likes · 9 min read

This article introduces Nomi.js, a lightweight Node.js micro‑framework built on Koa2, explains its design goals and pain‑points it solves, outlines its key features, and provides step‑by‑step instructions with code examples for installing the CLI, initializing a project, and creating MVC‑style controllers and services.
JavaScriptMVCMicroframework
0 likes · 7 min read

The article details how Ctrip's flight ticket front‑end team introduced Node.js for front‑back separation, built a Vue‑based H5 architecture with PM2, Express and standard RESTful APIs, then migrated many services to GraphQL, achieving modularity, performance under 50 ms and handling millions of daily requests.
BackendRESTful APIVue
0 likes · 10 min read

This tutorial walks through designing a RESTful API, creating a school‑teacher‑student CRUD system, modeling the database schema, structuring the Flask project, and using tools like Postman and curl to test the Python backend, with code snippets and diagrams illustrating each step.
CRUDFlaskPostman
0 likes · 3 min read

This guide explains the nine HTTP methods, highlights the five most common ones for RESTful APIs, outlines essential API design principles, and details proper usage of HTTP status codes and error responses to build robust, maintainable backend services.
API DesignHTTP MethodsRESTful API
0 likes · 6 min read

This guide explains the three core pillars of RESTful API security—client authentication, data encryption, and post‑authentication authorization—detailing practical methods such as signature keys, HTTP Basic/Digest, OAuth, SSL, selective encryption with salts, and role‑based access control.
AuthenticationHTTP DigestOAuth
0 likes · 4 min read

This article explains the background of RESTful APIs, outlines recommended URL and parameter formats, details HTTP methods, response structures, filtering, pagination, status codes, hypermedia links, and extension considerations to help developers design robust, standardized backend services.
API DesignHTTP MethodsJSON response
0 likes · 12 min read


21CTOOct 10, 2017 · Backend Development
This article presents a comprehensive, academically‑styled guide for designing a unified RESTful API, covering core concepts such as REST constraints, HATEOAS, security, idempotency, URL naming conventions, request/response structures, version control, and recommended implementation tools.
API DesignHTTPRESTful API
0 likes · 14 min read

This tutorial walks through creating a lightweight student management system in Python, covering RESTful API design, CRUD operations for school, teacher, and student data, database schema creation with SQLAlchemy, Flask endpoint implementation, and tools for testing and result visualization.
CRUDDatabase DesignFlask
0 likes · 5 min read

This article walks through building a RESTful API using the Perfect framework in Swift, covering framework comparison, environment setup with Docker, project initialization, routing, database integration via MySQL‑Swift, error handling, logging, deployment, and lessons learned from server‑side Swift development.
DockerMySQLPerfect
0 likes · 18 min read

koa‑restql automatically creates full RESTful CRUD endpoints from Sequelize models, mapping each database table to standard GET, POST, PUT, and DELETE routes, handling query filters, pagination, and associations via query strings, and offering middleware or association‑level options for access control, thus eliminating repetitive data‑operation code in Koa backends.
KoaNode.jsORM
0 likes · 7 min read

This guide demystifies RESTful API design by explaining the role of each HTTP method, resource types, URL conventions, and best‑practice principles, using clear diagrams so beginners can grasp how to build scalable, maintainable backend services.
API DesignHTTP MethodsRESTful API
0 likes · 7 min read

This guide walks you through the essential concepts of building robust RESTful APIs—including request/response handling, serialization, validation, authentication, CORS, and URL design—so you can create secure, standards‑compliant services from scratch.
AuthenticationCORSHTTP
0 likes · 15 min read


21CTOFeb 24, 2016 · Backend Development
This article explains how to design a well‑structured RESTful API by covering protocol choice, domain naming, versioning, endpoint conventions, HTTP verbs, filtering, status codes, error handling, response formats, hypermedia links, authentication, and data format recommendations.
API DesignHTTP verbsRESTful API
0 likes · 9 min read


21CTOAug 10, 2015 · Backend Development
This article presents practical guidelines for designing, versioning, securing, and documenting RESTful APIs, covering resource modeling, URL conventions, filtering, sorting, pagination, authentication, rate limiting, error handling, and response formats to help developers build flexible and user‑friendly public APIs.
API DesignBackendHTTP
0 likes · 22 min read
