Tools suitable for writing interface documents, or text syntax

because the back end uses ajax to interact with the front end, it becomes necessary for the back end to write interface documentation. I used to use word to write interface documents, but recently I worked with colleagues to write the back-end, word is not suitable to use svn tools to do Synchronize, because svn, git and so on can not automatically merge word. So I intend to write the document in text format.

first thought of writing in markdown syntax. markdown Grammar

but one of the most important features of the interface documentation is that there are many interfaces and each interface needs to be numbered (as shown in the following figure).
of course, markdown supports sequence numbers, but the support is not perfect. For example, there can be at most one blank line between the upper and lower sequence numbers, and the blank line cannot write text, so you can only write the interface title, and there is no room to write the content of the interface.

what is the suitable method for writing interface documents? It"s better to be a syntax, not a software

.

clipboard.png


markdownmarkdownmarkdownchrome

Markdown Preview Plus

clipboard.png

Markdown Viewer

clipboard.png

< hr >

these two plug-ins are actually provided for document readers, but document editors do not need them. It all depends on their personal preferences. These two plug-ins have been found in the official chrome market. I wonder if anyone in China has developed plug-ins that have not been transferred to the chrome market

.
Mar.20,2021

I recommend RAML
is currently in use, written in YAML file format, powerful official support , official atom plug-in, support syntax intelligence prompt and verification, writing is fast and easy.

  1. supports examples
  2. supports schema check
  3. support tool testing

API CONSOLE, is officially supported for rendering
DEMO APPLICATION


https://swagger.io/


GitBookSwagger-UISwagger-UI


postman postman


eoLinker | APIGoogle


http://apizza.cc/?f=chromeapp


RAPRAP


MinDoc
Markdown



postman


apidoc


Swagger. .


:Swagger

:gitbookmkdocsmarkdownhtml)


APIJSON

http://39.108.143.172/


Showdoc works well


I usually use MD to write, which is very simple. The caller can understand

at a glance. < H2 > user registration < / H2 >
POST /user/register

request parameters

https://share.notestore.cn/ac...</a>

<h2></h2>

<strong>:</strong>

g=Api&m=Banner&a=lists

return instructions

//JSON
{
    "result": "ok",
    "banners": [
        {
            "banner_id": "BANNER_ID",
            "banner_name": "BANNER_NAME",
            "image_url": "IMAGE_URL",
            "target_url": "TARGET_URL",
            "start_time": "START_TIME",
            "end_time": "END_TIME",
            "banner_type": "BANNER_TYPE",
            "banner_sort": "BANNER_SORT"
        }
    ]
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b30a-412b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b30a-412b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?