Apiary: Is it possible to document what JSON response fields are?

前端 未结 2 1351
名媛妹妹
名媛妹妹 2021-02-14 20:12

I would like to document what the actual JSON fields themselves represent.

I have documented the GET statement, and parameters but this does not make a complete document

2条回答
  •  醉梦人生
    2021-02-14 20:44

    I don't think it is supported yet.

    I solved this problem in my project by putting a table with the description right above the GET request line. In your case it could look like:

    ### List all Applications 
    
    | Field                            | Description               |
    |----------------------------------|---------------------------|
    | Catalog.Applications.OtherFields | Documentation goes here.. |
    
    ### Get List of Applications [GET]
    

    To help you create the table in Markdown syntax you can use Markdown Tables generator.

    Note that the table generator lets you save the table definition to a file so next time you would need to edit the table you can start from where you left off .

提交回复
热议问题