What capabilities can the public interface read and write on the site, and how to classify the interface documents?

What capabilities can be operated through the public interface, and how are the interface documents classified? The content system generally organizes interfaces by capability domain: document list and details, classification and tags, image upload, comments and reviews, friend links, system settings and contact information constitute high-frequency call surfaces, and interface documents are also classified into these categories, and when interfacing, it is first located in the category and then look at the fields.There is a dedicated channel for batch content entry - document content import interface /api/import/archive, it supports importing compressed packages as a whole, and also supports querying the title first to see if it already exists before deciding to write, which is a commonly used entry for external system connection.

How to view the classification of interface documents?

AnQiCMS places the ability to expose interfaces under the 'AnQiCMS Interface Help' category for maintenance, where the caller can search by topic and page, rather than searching through a long explanation. When first encountering the interfaces of a content system, it is recommended to read the document in this order: first, check the authentication instructions (what credentials, where in the request); then, look at the list of capabilities, to confirm if the function you need has a corresponding interface; finally, look at the field conventions, focusing on pagination parameters, time format, and error return structure. Reading these three steps can filter out most of the 'interfaces that look good but don't work' pitfalls.

High-frequency callable ability list

Ability domain Typical operation Common callers
Document list and details List by category, read text and metadata Mini-program, App embedded page
Categories and tags Pulling category tree, aggregation by tag Front-end navigation, related recommendations
Image Upload Submit image resources, get back access address External editor, operation tools
Leave a message and comment Read and submit interactive content Form page, community module
Friendship links and contact information Read site cooperation and contact information Page template, external directory
System settings Read site-level public configuration Multi-end client

This table corresponds to the classification page in the interface document. The external read interface is the main part of the integration requirement; the write operation interface needs to consider permissions and review flow, not every site is suitable for full opening.

The two uses of the import interface

The batch content goes through /api/import/archive: It accepts content import in the form of archive packages, suitable for migrating existing articles from another system or regularly feeding content into the production pipeline. The document content import interface also supports querying whether a title already exists, which determines that it can be used in incremental scenarios—the external system checks the title before each push, updates or skips if a hit is found, and creates a new one if not, to avoid duplicate content with the same title from being stored.

Before connecting to the import interface, there are three checklists: field list (how to send the title, keywords, description, category, tags, and publishing status individually); status list (after import, whether it falls into draft, pending release, or formal, whether it needs to go through another review); idempotence list (whether retrying on failure will produce duplicates, whether the duplicate check by title covers all paths). Fill in the three tables before starting work, and the rework rate will be significantly reduced.

Define the boundaries before calling.

The public interface is both a capability and an attack surface. In scenarios where only read access is provided externally, the exposure range should converge by category, and being able to read a list does not mean being able to read the full text; unissued content should also be excluded at the interface layer. For interfaces involving writing, the authentication credentials should be kept on the server side and not sent to the browser. The system is built with JWT authentication and sensitive word filtering, among other security capabilities, but the permission planning for interface connection still needs to be done by yourself: which categories are open, how many QPS are expected, and what should be returned after exceeding the frequency. These agreements should be written into the access document, which is more reliable than verbal consensus.

Common questions

Can the interface obtain the keywords and description of the article?It depends on the interface exposed field surface, public read interfaces usually have titles and summaries, whether to give the TDK level fields and to what extent, it is decided according to the site's own permission planning.

Is the import interface the same as the background batch import?The background batch import is aimed at manual operation (table, compressed package), /api/import/archive is aimed at programmatic connection, both have the same final storage path, and it is recommended to unify the field specifications to the same set of conventions.

What should be done when a third party requires the link to the interface document?Make the interface help classification page as the entry point for external documents, note that only in-house documents should be referenced, and do not write the credentials and internal addresses of the test environment into the external instructions.