Emacs can act as a client for virtually any service by leveraging its built-in libraries (URL, sockets, SMTP, SQLite) and Elisp's dynamic nature. The post walks through building a weather client using the wttr.in JSON API in about 67 lines of Elisp, demonstrating how Emacs orchestrates HTTP requests, JSON parsing, and UI display. It also shows how shell commands can be treated as local 'services', making integration with external utilities straightforward.
Nguồn: http://yummymelon.com/devnull/in-emacs-everything-looks-like-a-service.html. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
REST và GraphQL là hai kiến trúc API phổ biến dành cho nhà phát triển, mỗi loại có nguyên tắc, ưu điểm, nhược điểm và trường hợp sử dụng riêng. REST hoạt động dựa trên tài nguyên và phương thức HTTP tiêu chuẩn, trong khi GraphQL cho phép truy vấn dữ liệu linh hoạt theo nhu cầu. Việc lựa chọn giữa hai phương pháp phụ thuộc vào yêu cầu cụ thể của dự án.
Một lập trình viên nên đọc bài này để hiểu rõ cách chọn giữa REST và GraphQL để tối ưu hóa hiệu suất, tính linh hoạt của ứng dụng và tránh những lỗi thiết kế thường gặp khi thiết kế API.
WP-CLI, the WordPress REST API, and the new Abilities API serve different callers at different layers of the same stack. WP-CLI runs PHP directly on the server for bulk operations, migrations, and deploys. The REST API exposes WordPress over HTTP for browsers, mobile apps, and headless frontends. The Abilities API, introduced in WordPress 6.9, lets plugins register named, schema-described capabilities that AI agents can safely discover and execute without needing raw endpoint access. Rather than competing, the three layers complement each other: Abilities often surface over REST, which runs on the same PHP WP-CLI drives. The decision rule is simple — the closer and more trusted the caller, the lower in the stack you go; the more autonomous and remote, the higher you climb.
DoltHub has released API v2, a modern versioned REST API built on OpenAPI 3.1. The new API addresses three core problems with the previous v1alpha1: inconsistent semantics, tight coupling to the UI's GraphQL layer, and lack of verifiable contracts. Key improvements include a uniform success envelope ({data, meta}), cursor-based pagination, a single Operation resource for all async workflows (fork, merge, import, SQL write), uniform bearer auth, and snake_case field names throughout. The spec is the source of truth for docs, TypeScript types, runtime validation, and contract tests. v1alpha1 remains supported, but v2 is the surface that will continue to grow, with Hosted Dolt's first public REST API planned to follow the same pattern.
Salesforce is launching a redesigned Connect REST API reference documentation starting July 2026. The new experience consolidates previously fragmented pages into a single unified page with a three-column layout showing resources, details, and request/response examples side by side. The reference now follows the OpenAPI Specification, enabling downloads for use with AI agents or code generation. Version information is now inline throughout the page rather than requiring a version dropdown selection. Key changes include clickable endpoint paths for copying full URLs, field type patterns using regex, and the removal of deep-linking to standalone request/response body pages.
A practical guide to building REST endpoints that accept binary file uploads in Jakarta EE and Quarkus. Covers three approaches: the standard Jakarta REST 3.1 EntityPart API for portable multipart/form-data handling, the Quarkus-specific @RestForm with FileUpload for a more ergonomic experience, and raw application/octet-stream for single-file body uploads. Each approach includes working code examples, curl commands showing the wire format, and a pros/cons breakdown. Also covers security considerations: capping upload size, not trusting client-supplied Content-Type or filenames, streaming instead of buffering, and scanning uploaded content.
GitHub đã cải tiến API báo cáo sử dụng Copilot với ba thay đổi: (1) CLI giờ báo cáo số dòng code đề xuất (có loại bỏ trùng lặp từ phiên bản 1.0.64), (2) phiên bản IDE/plugin của người dùng giờ được hiển thị trong totals_by_ide, (3) sửa lỗi hiển thị ai_credits_used bằng 0.0 cho một số người dùng. Những cập nhật này giúp quản trị viên doanh nghiệp có báo cáo chính xác và đầy đủ hơn.
Lập trình viên quản lý dự án hoặc quản trị viên tổ chức nên đọc bài này để hiểu cách cải thiện chính xác và toàn diện của báo cáo sử dụng Copilot, giúp họ có dữ liệu chính xác hơn để đánh giá hiệu quả sử dụng công cụ và tối ưu hóa chi phí cho đội ngũ.
Brave has released an improved Place Search API offering access to ~200 million points of interest worldwide at $5 per 1,000 requests — 6 to 7 times cheaper than Google Maps API ($32–$35/1k). In a side-by-side evaluation of 1,000 real queries, Brave scored 6.4 vs Google's 7.3 out of 10. Brave outperforms on recall and handling of ambiguous names, streets, and addresses, while Google leads on category ranking precision. The API returns rich data (coordinates, hours, ratings, photos, etc.) in a single flat-rate call. Built on an independent index (not a Google scrape), it supports Zero Data Retention, SOC 2 Type II, and shared IDs across Web Search and POI endpoints. It also ships with AI coding tool integrations (Cursor, Claude Code, OpenCode) for faster developer onboarding.
Link Preview API is a free service that fetches Open Graph metadata, titles, descriptions, images, and favicons for any URL via a simple GET request. It returns structured JSON suitable for rendering rich link cards like those seen in Slack or iMessage. The API handles JavaScript rendering, proxy rotation, and has purpose-built integrations for sites like YouTube, Amazon, and Twitter. Free tier includes up to 20,000 requests per month, with no proxy server required for browser-side usage. It is part of the broader Exabase platform.