Menu

#5 apidoc文档内容能否支持定制?以及字符串的显示问题

open
nobody
None
2018-07-18
2018-07-18
Anonymous
No

Originally created by: shiqinfeng1

  1. apidoc文档的标题是否可以定制,不要只能显示 “RESTful API”
  2. {
    "problem_id":1,
    "user_id":"123456",
    "sign": "12345abcde",
    "atime":137322417,
    "content":"[ {'type': 'text','text': '这是一段文本形式的内容'},{'type': 'image','file': '这是图片形式的内容,这里是图片的 url'},{'type': 'audio','file': '这是语音形式的内容,这里是音频文件的 url'}]"
    }
    例如上面一段json输入中, 在apidoc的example中content显示为:
    "content": "[ {\u0027type\u0027: \u0027text\u0027,\u0027text\u0027: \u0027这是一段文本形式的内容\u0027},{\u0027type\u0027: \u0027image\u0027,\u0027file\u0027: \u0027这是图片形式的内容,这里是图片的 url\u0027},{\u0027type\u0027: \u0027audio\u0027,\u0027file\u0027: \u0027这是语音形式的内容,这里是音频文件的 url\u0027}]",

单引号转换有问题, 不知能否解决?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.