2017-07-06 19:21:54 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
|
<meta name="format-detection" content="telephone=no,email=no" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge, chrome=1">
|
|
|
|
<meta name="description" content="description of your site">
|
|
|
|
<meta name="author" content="author of the site">
|
|
|
|
<title>yapi api文档</title>
|
|
|
|
<link rel="stylesheet" href="source/main.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="ydoc">
|
|
|
|
<header class="ydoc-header">
|
|
|
|
<div class="ydoc-header-area">
|
|
|
|
|
|
|
|
<a href="http://ued.qunar.com/ymfe/" class="navbar-brand">YMFE</a>
|
|
|
|
|
|
|
|
<button class="ydocIcon navbar-toggle"></button>
|
|
|
|
<nav class="ydoc-nav">
|
|
|
|
<ul class="navbar-left">
|
|
|
|
|
|
|
|
<li class="">
|
|
|
|
|
|
|
|
<a href="index.html">首页</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="active">
|
|
|
|
|
|
|
|
<a href="api.html">api文档</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- <header style="height:20px"></header> -->
|
|
|
|
|
|
|
|
<!-- Docs page layout -->
|
|
|
|
|
|
|
|
<div class="ydoc-banner-bg">
|
|
|
|
<div class="ydoc-banner ">
|
|
|
|
<div class="ydoc-banner-area">
|
|
|
|
<h1 >api</h1>
|
|
|
|
<p class="desc ">api文档</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ydoc-container">
|
|
|
|
|
|
|
|
<div class="ydoc-container-content">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-left " role="complementary">
|
|
|
|
<nav class="docs-sidebar hidden-print hidden-xs hidden-sm">
|
|
|
|
<ul class="nav docs-sidenav">
|
|
|
|
|
|
|
|
<!-- <li > -->
|
|
|
|
<li >
|
|
|
|
|
|
|
|
<a href="#group">group</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<ul class="nav docs-sidenav-extend" >
|
|
|
|
|
|
|
|
<li >
|
|
|
|
<a href="#-group-add">/group/add</a>
|
|
|
|
</li>
|
2017-07-06 20:53:26 +08:00
|
|
|
|
|
|
|
<li >
|
|
|
|
<a href="#-group-list">/group/list</a>
|
|
|
|
</li>
|
2017-07-06 19:21:54 +08:00
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content-right markdown-body " role="main">
|
|
|
|
|
|
|
|
<div class="docs-section">
|
|
|
|
|
|
|
|
<h2 id="group" class="page-header subject">group<a class="hashlink" href="#group">#</a></h2>
|
|
|
|
|
|
|
|
<div class="con-list-item">
|
|
|
|
<blockquote class="api">
|
|
|
|
<h3 id="-group-add" class="page-header subject">
|
|
|
|
/group/add
|
|
|
|
|
|
|
|
<span class="ui-badge">POST</span>
|
|
|
|
|
|
|
|
|
|
|
|
<a class="hashlink" href="#-group-add">#</a>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
<p>
|
|
|
|
<small class="text-muted">描述:</small>
|
|
|
|
添加项目分组
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<small class="text-muted">参数:</small>
|
|
|
|
</p>
|
|
|
|
<div class="docs-table">
|
|
|
|
<table class="yo-table yo-table-border">
|
|
|
|
<colgroup>
|
|
|
|
<col class="c1">
|
|
|
|
<col class="c2">
|
|
|
|
<col class="c3">
|
|
|
|
<col class="c4">
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr class="active">
|
|
|
|
<th>参数名</th>
|
|
|
|
<th>类型</th>
|
|
|
|
<th>描述</th>
|
|
|
|
<th>必选</th>
|
|
|
|
<th>支持版本</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>group_name</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>项目分组名称,不能为空</td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<i class="yo-ico glyphicon glyphicon-ok text-success"></i>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>group_desc</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>项目分组描述</td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div>返回示例:</div>
|
2017-07-06 20:53:26 +08:00
|
|
|
<pre class="ydoc-example" data-foldnumber=10><code><span class="token punctuation">{</span>
|
|
|
|
<span class="token string">"errcode"</span><span class="token punctuation">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
|
|
|
|
<span class="token string">"errmsg"</span><span class="token punctuation">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span>
|
|
|
|
<span class="token string">"data"</span><span class="token punctuation">:</span> <span class="token punctuation">{</span>
|
|
|
|
<span class="token string">"_id"</span><span class="token punctuation">:</span> <span class="token number">4</span><span class="token punctuation">,</span>
|
|
|
|
<span class="token string">"group_name"</span><span class="token punctuation">:</span> <span class="token string">"大数据5"</span><span class="token punctuation">,</span>
|
|
|
|
<span class="token string">"group_desc"</span><span class="token punctuation">:</span> <span class="token string">"大数据5"</span>
|
|
|
|
<span class="token punctuation">}</span>
|
|
|
|
<span class="token punctuation">}</span></code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="con-list-item">
|
|
|
|
<blockquote class="api">
|
|
|
|
<h3 id="-group-list" class="page-header subject">
|
|
|
|
/group/list
|
|
|
|
|
|
|
|
<span class="ui-badge">get</span>
|
|
|
|
|
|
|
|
|
|
|
|
<a class="hashlink" href="#-group-list">#</a>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
<p>
|
|
|
|
<small class="text-muted">描述:</small>
|
|
|
|
添加项目分组
|
|
|
|
</p>
|
|
|
|
|
2017-07-06 19:21:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="copyright">
|
|
|
|
© 2016 <a href="http://ued.qunar.com/ymfe/">YMFE</a> Team. Build by <a href="http://ued.qunar.com/ydoc/">ydoc</a>.
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="open-panel"></div>
|
|
|
|
<div class="mask"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="source/main.js"></script>
|
|
|
|
<script src="source/app.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var lineHeight = 17.4;
|
|
|
|
var EXAMPLE_MAX_HEIGHT;
|
|
|
|
|
|
|
|
function fold() {
|
|
|
|
// 折叠code
|
|
|
|
$('.markdown-body pre').css({
|
|
|
|
"line-height": lineHeight + "px"
|
|
|
|
});
|
|
|
|
$('.markdown-body pre').map(function(i, item) {
|
|
|
|
var $item = $(item);
|
|
|
|
var foldnumber = $item.data('foldnumber');
|
|
|
|
EXAMPLE_MAX_HEIGHT = lineHeight * (foldnumber || 6);
|
|
|
|
if ($item.height() > EXAMPLE_MAX_HEIGHT) {
|
|
|
|
$item.css({
|
|
|
|
"padding-bottom": 30
|
|
|
|
});
|
|
|
|
$item.find('code').height(EXAMPLE_MAX_HEIGHT);
|
|
|
|
$item.append('<span class="extend">展开更多……</span>');
|
|
|
|
};
|
|
|
|
});
|
|
|
|
$('.ydoc-example').delegate('.extend', 'click', function() {
|
|
|
|
var $this = $(this);
|
|
|
|
$this.removeClass('extend').addClass('fold');
|
|
|
|
$this.html('折叠代码');
|
|
|
|
$this.prev().height('auto');
|
|
|
|
$this.prev().parent().height('auto');
|
|
|
|
});
|
|
|
|
$('.ydoc-example').delegate('.fold', 'click', function() {
|
|
|
|
var $this = $(this);
|
|
|
|
var foldnumber = $this.parent().data('foldnumber');
|
|
|
|
EXAMPLE_MAX_HEIGHT = lineHeight * (foldnumber || 6);
|
|
|
|
$this.removeClass('fold').addClass('extend');
|
|
|
|
$this.parent().height(EXAMPLE_MAX_HEIGHT); // pre
|
|
|
|
$this.prev().height(EXAMPLE_MAX_HEIGHT); // code
|
|
|
|
$this.html("展开更多……");
|
|
|
|
});
|
|
|
|
}
|
|
|
|
$(document).ready(fold);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|