Part Three: Detailed Explanation of API Interface Classification

Here are the API interface categories provided by AnQiCMS, as well as some interface parameters. For more documentation interfaces and parameter configurations, please refer to the detailed documentation.

3.1 Content Management Interface

The Content Management Interface is used to handle the core content of the website, including documents, categories, tags, etc.

3.1.1Get document details interface

  • Interface Path:/api/archive/detail
  • Request Method: GET
  • FeatureGet detailed information of a single document
  • Parameter:
    • id(int, required) - Document ID
    • filename(string, optional) - Document URL alias (id/filename either one)
    • render(boolean, optional) - Whether to render the content as HTML (Markdown document rendering), default is true

3.1.2to get the document list interface

  • Interface Path:/api/archive/list
  • Request Method: GET
  • Feature: Get document list
  • Parameter:
    • moduleId(int, optional) - Model ID
    • categoryId(string, optional) - Category ID, multiple IDs can be separated by commas
    • limit(int, optional) - Display count
    • page(int, optional) - Page number
    • order(string, optional) - Sort method, such asid desc

3.1.3Get Document Parameters Interface

  • Interface Path:/api/archive/params
  • Request Method: GET
  • Feature: Retrieve document custom parameters
  • Parameter:
    • id(int, required) - Document ID
    • filename(string, optional) - Document URL alias (id/filename either one)
    • sorted(int, optional) - Return format, true for array format, false for object format

3.1.4Get Category Detail Interface

  • Interface Path:/api/category/detail
  • Request Method: GET
  • Feature: Get category details information
  • Parameter:
    • id(int, optional) - Category ID
    • filename(string, optional) - Category URL alias

3.1.5Get Category List Interface

  • Interface Path:/api/category/list
  • Request Method: GET
  • Feature: Get the category list
  • Parameter:
    • moduleId(int, optional) - Model ID
    • parentId(int, optional) - Parent Category ID
    • limit(int, optional) - Display count

3.1.6Get Tag List Interface

  • Interface Path:/api/tag/list
  • Request Method: GET
  • FeatureGet Tag List
  • Parameter:
    • itemId(int, optional) - Document ID
    • letter(string, optional) - Initial Letter Filter
    • type(string, optional) - Return type

3.2 User Management Interface

The User Management Interface is used to handle user registration, login, information management, and other functions.

3.2.1User login interface

  • Interface Path:/api/login
  • Request Method: POST
  • Feature: User login authentication
  • Parameter:
    • user_name(string, optional) - Username
    • password(string, optional) - Password
    • email(string, optional) - Email
    • phone(string, optional) - Phone number

3.2.2User registration interface

  • Interface Path:/api/register
  • Request Method: POST
  • Feature: New user registration
  • Parameter:
    • user_name(string, optional) - Username
    • password(string, optional) - Password
    • email(string, optional) - Email
    • phone(string, optional) - Phone number
    • captcha(string, optional) - Verification code

3.2.3Get user details interface

  • Interface Path:/api/user/detail
  • Request Method: GET
  • Feature: Get user details
  • Authentication required: Yes

3.2.4User favorite management

  • Get favorite list:/api/favorite/list
  • Add favorite:/api/favorite/add
  • Check collection status:/api/favorite/check
  • Remove favorite:/api/favorite/delete

3.3 Comment interaction interface

The comment interaction interface is used to handle user comments and interaction features.

3.3.1Get Comment List Interface

  • Interface Path:/api/comment/list
  • Request Method: GET
  • Feature: Get comment list
  • Parameter:
    • archive_id(int, optional) - Document ID
    • parent_id(int, optional) - Parent Comment ID
    • limit(int, optional) - Display count

3.3.2Post comment interface

  • Interface Path:/api/comment/publish
  • Request Method: POST
  • Feature: Post Comment
  • Authentication required: Yes
  • Parameter:
    • archive_id(int, required) - Document ID
    • content(string, required) - Comment Content
    • parent_id(int, optional) - Parent Comment ID

3.4 Shopping Cart and Order Interface

Shopping cart and order interface for handling the product purchase process.

3.4.1Shopping cart management

  • Add to cart:/api/cart/add
  • Get shopping cart list:/api/cart/list
  • Update shopping cart:/api/cart/update
  • Remove from cart:/api/cart/remove

3.4.2Order Management

  • create order:/api/order/create
  • get order details:/api/order/detail
  • get order list:/api/orders
  • cancel order:/api/order/cancel
  • Complete order:/api/order/finished
  • Order payment:/api/order/payment

3.5 Review and Coupon Interface

3.5.1Review Management

  • Publish order evaluation:/api/review/publish
  • Get Order Review:/api/review/list

3.5.2Coupon Management

  • Get coupon code:/api/coupon/code
  • Get coupon list:/api//coupon/codes
  • Get a valid coupon list:/api/coupon/valid

3.6 Distribution Interface

The distribution interface is used to handle related functions of distributors.

3.6.1Distributor Management

  • Get distributor details:/api/retailer/info
  • Update Distributor Information:/api/retailer/update
  • Get Distributor Statistics:/api/retailer/statistics

3.6.2Distributor Profit Management

  • Get distributor earnings list:/api/retailer/commissions
  • Get distribution team list:/api/retailer/members
  • Get Distributor Order:/api/retailer/orders

3.6.3Distributor Withdrawal Management

  • Apply for Distributor Withdrawal:/api/retailer/withdraw
  • Get Distributor Withdrawal Record:/api/retailer/withdraw

3.7 System and Configuration Interface

The system and configuration interface is used to retrieve system settings and configuration information.

3.7.1System settings

  • Get System Settings:/api/setting/system
  • Get Contact Information:/api/setting/contact
  • Get Home Page Settings:/api/setting/index
  • Get Custom Field:/api/setting/diy

3.7.2Other system interfaces

  • Get multilingual site:/api/languages
  • Get Google URL:/api/google/url
  • Statistical data:/api/log

3.8 Leave Message and Verification Interface

3.8.1Leave Message Management

  • Submit message:/api/guestbook.html
  • Get Leave Message Field:/api/guestbook/fields

3.8.2Verification Management

  • Get verification code:/api/captcha
  • Send email verification:/api/verify/email
  • Verify email:/api/verify/email

3.9Upload interface

  • Upload attachment interface:/api/attachment/upload
  • Request Method: POST
  • Feature: Upload File Attachment

3.10Document import interface

Document import interface is used to import content from third-party platforms.

  • Import document:/api/import/archive
  • Check if the document exists:/api/import/archive/check
  • Get document category list:/api/import/categories
  • Add a friend link:/api/friendlink/create
  • Check if the link exists:/api/friendlink/check
  • Delete Link:/api/friendlink/delete
  • Generate Sitemap:/api/import/sitemap

3.11WeChat Related Interface

  • WeChat API:/api/wechat
  • WeChat authorization API:/api/wechat/auth
  • Get Mini Program QR Code:/api/weapp/qrcode

3.12Other Interfaces

  • Subscription Interface:/api/subscription
  • Payment Check Interface:/api/payment/check