update apidoc

pull/132/head
Alex 2018-12-03 13:53:41 +08:00
parent 69bc6b3677
commit baa42567c7
10 changed files with 62 additions and 35 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
/EasyDarwin.exe
/EasyDarwin.exe~
/logs
/*.log
node_modules
*.db
*.db.bak

View File

@ -29,7 +29,7 @@ import (
*/
/**
* @api {get} /api/vi/record/folders
* @api {get} /api/v1/record/folders
* @apiGroup record
* @apiName RecordFolders
* @apiParam {Number} [start] ,
@ -80,7 +80,7 @@ func (h *APIHandler) RecordFolders(c *gin.Context) {
}
/**
* @api {get} /api/vi/record/files
* @api {get} /api/v1/record/files
* @apiGroup record
* @apiName RecordFiles
* @apiParam {Number} folder

View File

@ -16,7 +16,7 @@ import (
*/
/**
* @api {get} /api/vi/stream/start
* @api {get} /api/v1/stream/start
* @apiGroup stream
* @apiName StreamStart
* @apiParam {String} url RTSP
@ -65,7 +65,7 @@ func (h *APIHandler) StreamStart(c *gin.Context) {
}
/**
* @api {get} /api/vi/stream/stop
* @api {get} /api/v1/stream/stop
* @apiGroup stream
* @apiName StreamStop
* @apiParam {String} id ID

View File

@ -99,7 +99,7 @@ func (h *APIHandler) ModifyPassword(c *gin.Context) {
}
/**
* @api {get} /getserverinfo
* @api {get} /api/v1/getserverinfo
* @apiGroup sys
* @apiName GetServerInfo
* @apiSuccess (200) {String} Hardware
@ -122,7 +122,7 @@ func (h *APIHandler) GetServerInfo(c *gin.Context) {
}
/**
* @api {get} /restart
* @api {get} /api/v1/restart
* @apiGroup sys
* @apiName Restart
* @apiUse simpleSuccess
@ -146,7 +146,7 @@ func (h *APIHandler) Restart(c *gin.Context) {
*/
/**
* @api {get} /login
* @api {get} /api/v1/login
* @apiGroup sys
* @apiName Login
* @apiParam {String} username
@ -183,7 +183,7 @@ func (h *APIHandler) Login(c *gin.Context) {
}
/**
* @api {get} /userInfo
* @api {get} /api/v1/userInfo
* @apiGroup sys
* @apiName UserInfo
* @apiUse userInfo
@ -202,7 +202,7 @@ func (h *APIHandler) UserInfo(c *gin.Context) {
}
/**
* @api {get} /logout
* @api {get} /api/v1/logout
* @apiGroup sys
* @apiName Logout
* @apiUse simpleSuccess

View File

@ -1,7 +1,7 @@
define({ "api": [
{
"type": "get",
"url": "/api/vi/record/files",
"url": "/api/v1/record/files",
"title": "获取所有录像文件",
"group": "record",
"name": "RecordFiles",
@ -104,7 +104,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/api/vi/record/folders",
"url": "/api/v1/record/folders",
"title": "获取所有录像文件夹",
"group": "record",
"name": "RecordFolders",
@ -427,8 +427,8 @@ define({ "api": [
},
{
"type": "get",
"url": "/api/vi/stream/start",
"title": "启动拉",
"url": "/api/v1/stream/start",
"title": "启动拉转推",
"group": "stream",
"name": "StreamStart",
"parameter": {
@ -484,8 +484,8 @@ define({ "api": [
},
{
"type": "get",
"url": "/api/vi/stream/stop",
"title": "停止流",
"url": "/api/v1/stream/stop",
"title": "停止流",
"group": "stream",
"name": "StreamStop",
"parameter": {
@ -516,7 +516,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/getserverinfo",
"url": "/api/v1/getserverinfo",
"title": "获取平台运行信息",
"group": "sys",
"name": "GetServerInfo",
@ -560,7 +560,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/login",
"url": "/api/v1/login",
"title": "登录",
"group": "sys",
"name": "Login",
@ -599,7 +599,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/logout",
"url": "/api/v1/logout",
"title": "登出",
"group": "sys",
"name": "Logout",
@ -618,7 +618,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/restart",
"url": "/api/v1/restart",
"title": "重启服务",
"group": "sys",
"name": "Restart",
@ -637,7 +637,7 @@ define({ "api": [
},
{
"type": "get",
"url": "/userInfo",
"url": "/api/v1/userInfo",
"title": "获取当前登录用户信息",
"group": "sys",
"name": "UserInfo",

View File

@ -1,7 +1,7 @@
[
{
"type": "get",
"url": "/api/vi/record/files",
"url": "/api/v1/record/files",
"title": "获取所有录像文件",
"group": "record",
"name": "RecordFiles",
@ -104,7 +104,7 @@
},
{
"type": "get",
"url": "/api/vi/record/folders",
"url": "/api/v1/record/folders",
"title": "获取所有录像文件夹",
"group": "record",
"name": "RecordFolders",
@ -427,8 +427,8 @@
},
{
"type": "get",
"url": "/api/vi/stream/start",
"title": "启动拉",
"url": "/api/v1/stream/start",
"title": "启动拉转推",
"group": "stream",
"name": "StreamStart",
"parameter": {
@ -484,8 +484,8 @@
},
{
"type": "get",
"url": "/api/vi/stream/stop",
"title": "停止流",
"url": "/api/v1/stream/stop",
"title": "停止流",
"group": "stream",
"name": "StreamStop",
"parameter": {
@ -516,7 +516,7 @@
},
{
"type": "get",
"url": "/getserverinfo",
"url": "/api/v1/getserverinfo",
"title": "获取平台运行信息",
"group": "sys",
"name": "GetServerInfo",
@ -560,7 +560,7 @@
},
{
"type": "get",
"url": "/login",
"url": "/api/v1/login",
"title": "登录",
"group": "sys",
"name": "Login",
@ -599,7 +599,7 @@
},
{
"type": "get",
"url": "/logout",
"url": "/api/v1/logout",
"title": "登出",
"group": "sys",
"name": "Logout",
@ -618,7 +618,7 @@
},
{
"type": "get",
"url": "/restart",
"url": "/api/v1/restart",
"title": "重启服务",
"group": "sys",
"name": "Restart",
@ -637,7 +637,7 @@
},
{
"type": "get",
"url": "/userInfo",
"url": "/api/v1/userInfo",
"title": "获取当前登录用户信息",
"group": "sys",
"name": "UserInfo",

View File

@ -25,8 +25,8 @@ define({
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-12-03T05:17:28.228Z",
"time": "2018-12-03T05:50:19.289Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
"version": "0.17.7"
}
});

View File

@ -25,8 +25,8 @@
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-12-03T05:17:28.228Z",
"time": "2018-12-03T05:50:19.289Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
"version": "0.17.7"
}
}

25
www/apidoc/locales/cs.js Normal file
View File

@ -0,0 +1,25 @@
define({
cs: {
'Allowed values:' : 'Povolené hodnoty:',
'Compare all with predecessor': 'Porovnat vše s předchozími verzemi',
'compare changes to:' : 'porovnat změny s:',
'compared to' : 'porovnat s',
'Default value:' : 'Výchozí hodnota:',
'Description' : 'Popis',
'Field' : 'Pole',
'General' : 'Obecné',
'Generated with' : 'Vygenerováno pomocí',
'Name' : 'Název',
'No response values.' : 'Nebyly vráceny žádné hodnoty.',
'optional' : 'volitelné',
'Parameter' : 'Parametr',
'Permission:' : 'Oprávnění:',
'Response' : 'Odpověď',
'Send' : 'Odeslat',
'Send a Sample Request' : 'Odeslat ukázkový požadavek',
'show up to version:' : 'zobrazit po verzi:',
'Size range:' : 'Rozsah velikosti:',
'Type' : 'Typ',
'url' : 'url'
}
});

View File

@ -1,5 +1,6 @@
define([
'./locales/ca.js',
'./locales/cs.js',
'./locales/de.js',
'./locales/es.js',
'./locales/fr.js',