Merge branch 'feature/doc_tool' into 'master'
Feature/doc tool See merge request composer/php-json-rpc!1
This commit is contained in:
commit
ebcfb60ea5
|
@ -7,8 +7,8 @@
|
|||
"illuminate/support": "^5.5",
|
||||
"illuminate/http": "^5.5",
|
||||
"monolog/monolog": "^1.24",
|
||||
"itxq/api-doc-php": "^1.1",
|
||||
"influxdb/influxdb-php": "^1.14"
|
||||
"influxdb/influxdb-php": "^1.14",
|
||||
"paidian/rpc-doc-php": "^1.1"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
@ -17,8 +17,10 @@
|
|||
},
|
||||
"require-dev": {
|
||||
},
|
||||
"api-doc-php": {
|
||||
"type": "vcs",
|
||||
"url": "git@git.int.haowumc.com:composer/php-rpc-doc.git"
|
||||
"repositories": {
|
||||
"rpc-doc-php": {
|
||||
"type": "vcs",
|
||||
"url": "git@git.int.haowumc.com:composer/php-rpc-doc.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
385
composer.lock
generated
385
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "dcf38bcb34b2690d5c6cdd46c9cb1280",
|
||||
"content-hash": "4ed10016736e0b0bac35abd1746497c8",
|
||||
"packages": [
|
||||
{
|
||||
"name": "doctrine/inflector",
|
||||
|
@ -18,7 +18,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a",
|
||||
"reference": "5527a48b7313d15261292c149e55e26eae771b0a",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1"
|
||||
|
@ -85,7 +91,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
|
||||
"reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"guzzlehttp/promises": "^1.0",
|
||||
|
@ -150,7 +162,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
|
||||
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5.0"
|
||||
|
@ -201,7 +219,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
|
||||
"reference": "9f83dded91781a01c63574e387eaa769be769115",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
|
@ -258,17 +282,23 @@
|
|||
},
|
||||
{
|
||||
"name": "illuminate/contracts",
|
||||
"version": "v5.7.23",
|
||||
"version": "v5.7.26",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/contracts.git",
|
||||
"reference": "3d67e2d7c9087ae3a2a53d9b102697e5f482d6d0"
|
||||
"reference": "b63324d349a8ae2156fbc2697c1ccc85879b3803"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/contracts/zipball/3d67e2d7c9087ae3a2a53d9b102697e5f482d6d0",
|
||||
"reference": "3d67e2d7c9087ae3a2a53d9b102697e5f482d6d0",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/illuminate/contracts/zipball/b63324d349a8ae2156fbc2697c1ccc85879b3803",
|
||||
"reference": "b63324d349a8ae2156fbc2697c1ccc85879b3803",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -298,21 +328,27 @@
|
|||
],
|
||||
"description": "The Illuminate Contracts package.",
|
||||
"homepage": "https://laravel.com",
|
||||
"time": "2019-01-09T10:34:49+00:00"
|
||||
"time": "2019-02-12T07:46:48+00:00"
|
||||
},
|
||||
{
|
||||
"name": "illuminate/filesystem",
|
||||
"version": "v5.7.23",
|
||||
"version": "v5.7.26",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/filesystem.git",
|
||||
"reference": "19ba2ac5f85b7505d7c2bf6307d10633f9f3c6b0"
|
||||
"reference": "ff853e678a93996b1d0a3ddc6fc56c10bae0de30"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/filesystem/zipball/19ba2ac5f85b7505d7c2bf6307d10633f9f3c6b0",
|
||||
"reference": "19ba2ac5f85b7505d7c2bf6307d10633f9f3c6b0",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/illuminate/filesystem/zipball/ff853e678a93996b1d0a3ddc6fc56c10bae0de30",
|
||||
"reference": "ff853e678a93996b1d0a3ddc6fc56c10bae0de30",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"illuminate/contracts": "5.7.*",
|
||||
|
@ -350,21 +386,27 @@
|
|||
],
|
||||
"description": "The Illuminate Filesystem package.",
|
||||
"homepage": "https://laravel.com",
|
||||
"time": "2018-12-28T14:33:29+00:00"
|
||||
"time": "2019-02-11T13:48:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "illuminate/http",
|
||||
"version": "v5.7.23",
|
||||
"version": "v5.7.26",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/http.git",
|
||||
"reference": "28f7a7ffa944d49b63023e99c1fda2e5fb56df0e"
|
||||
"reference": "279984eed495fc19a5649e4e8f57c5076e406f0a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/http/zipball/28f7a7ffa944d49b63023e99c1fda2e5fb56df0e",
|
||||
"reference": "28f7a7ffa944d49b63023e99c1fda2e5fb56df0e",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/illuminate/http/zipball/279984eed495fc19a5649e4e8f57c5076e406f0a",
|
||||
"reference": "279984eed495fc19a5649e4e8f57c5076e406f0a",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"illuminate/session": "5.7.*",
|
||||
|
@ -396,21 +438,27 @@
|
|||
],
|
||||
"description": "The Illuminate Http package.",
|
||||
"homepage": "https://laravel.com",
|
||||
"time": "2019-01-12T14:14:21+00:00"
|
||||
"time": "2019-02-11T13:48:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "illuminate/session",
|
||||
"version": "v5.7.23",
|
||||
"version": "v5.7.26",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/session.git",
|
||||
"reference": "7e2a7bcf01a16e03c2f97bffccc7e7f0fd0ed9da"
|
||||
"reference": "0d1233ea455b9ad50112212022ca3bcff874fa86"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/session/zipball/7e2a7bcf01a16e03c2f97bffccc7e7f0fd0ed9da",
|
||||
"reference": "7e2a7bcf01a16e03c2f97bffccc7e7f0fd0ed9da",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/illuminate/session/zipball/0d1233ea455b9ad50112212022ca3bcff874fa86",
|
||||
"reference": "0d1233ea455b9ad50112212022ca3bcff874fa86",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"illuminate/contracts": "5.7.*",
|
||||
|
@ -446,21 +494,27 @@
|
|||
],
|
||||
"description": "The Illuminate Session package.",
|
||||
"homepage": "https://laravel.com",
|
||||
"time": "2019-01-01T13:45:22+00:00"
|
||||
"time": "2019-02-11T13:48:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "illuminate/support",
|
||||
"version": "v5.7.23",
|
||||
"version": "v5.7.26",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/support.git",
|
||||
"reference": "ea3f30dd824bba52bcff4290dc7431b0ffb478e1"
|
||||
"reference": "3e2810145f37eb89fa11759781ee88ee1c1a5262"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/support/zipball/ea3f30dd824bba52bcff4290dc7431b0ffb478e1",
|
||||
"reference": "ea3f30dd824bba52bcff4290dc7431b0ffb478e1",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/illuminate/support/zipball/3e2810145f37eb89fa11759781ee88ee1c1a5262",
|
||||
"reference": "3e2810145f37eb89fa11759781ee88ee1c1a5262",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"doctrine/inflector": "^1.1",
|
||||
|
@ -505,7 +559,7 @@
|
|||
],
|
||||
"description": "The Illuminate Support package.",
|
||||
"homepage": "https://laravel.com",
|
||||
"time": "2019-01-07T13:39:07+00:00"
|
||||
"time": "2019-02-12T07:57:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "influxdb/influxdb-php",
|
||||
|
@ -519,7 +573,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/influxdata/influxdb-php/zipball/570bd5cdedb9b1c1628dceea5785bc40e08f7e48",
|
||||
"reference": "570bd5cdedb9b1c1628dceea5785bc40e08f7e48",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"guzzlehttp/guzzle": "^6.0",
|
||||
|
@ -567,42 +627,6 @@
|
|||
],
|
||||
"time": "2018-07-06T10:13:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "itxq/api-doc-php",
|
||||
"version": "v1.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/itxq/api-doc-php.git",
|
||||
"reference": "79ac71cf09da49491cfb92722d6f6e13ad8f6482"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/itxq/api-doc-php/zipball/79ac71cf09da49491cfb92722d6f6e13ad8f6482",
|
||||
"reference": "79ac71cf09da49491cfb92722d6f6e13ad8f6482",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"itxq\\apidoc\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "IT小强xqitw.cn",
|
||||
"email": "360237521@qq.com"
|
||||
}
|
||||
],
|
||||
"description": "api-doc-php",
|
||||
"time": "2018-06-24T04:20:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "1.24.0",
|
||||
|
@ -615,7 +639,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
|
||||
"reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
|
@ -693,7 +723,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/cd324b98bc30290f233dd0e75e6ce49f7ab2a6c9",
|
||||
"reference": "cd324b98bc30290f233dd0e75e6ce49f7ab2a6c9",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.9",
|
||||
|
@ -739,6 +775,35 @@
|
|||
],
|
||||
"time": "2018-12-28T10:07:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "paidian/rpc-doc-php",
|
||||
"version": "v1.1.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "git@git.int.haowumc.com:composer/php-rpc-doc.git",
|
||||
"reference": "239a492431552ed20fd1a034fae861426c20085f"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"itxq\\apidoc\\": "src"
|
||||
}
|
||||
},
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "IT小强xqitw.cn",
|
||||
"email": "360237521@qq.com"
|
||||
}
|
||||
],
|
||||
"description": "rpc-doc-php",
|
||||
"time": "2019-02-19T06:30:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/container",
|
||||
"version": "1.0.0",
|
||||
|
@ -751,7 +816,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
||||
"reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
|
@ -800,7 +871,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
|
@ -850,7 +927,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
|
||||
"reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
|
@ -897,7 +980,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
|
||||
"reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
|
@ -945,7 +1034,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
||||
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3"
|
||||
|
@ -985,7 +1080,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
||||
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3"
|
||||
|
@ -1043,17 +1144,23 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/debug",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/debug.git",
|
||||
"reference": "64cb33c81e37d19b7715d4a6a4d49c1c382066dd"
|
||||
"reference": "cf9b2e33f757deb884ce474e06d2647c1c769b65"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/64cb33c81e37d19b7715d4a6a4d49c1c382066dd",
|
||||
"reference": "64cb33c81e37d19b7715d4a6a4d49c1c382066dd",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/cf9b2e33f757deb884ce474e06d2647c1c769b65",
|
||||
"reference": "cf9b2e33f757deb884ce474e06d2647c1c769b65",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -1095,21 +1202,27 @@
|
|||
],
|
||||
"description": "Symfony Debug Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-03T09:07:35+00:00"
|
||||
"time": "2019-01-25T14:35:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "887de6d34c86cf0cb6cbf910afb170cdb743cb5e"
|
||||
"reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/887de6d34c86cf0cb6cbf910afb170cdb743cb5e",
|
||||
"reference": "887de6d34c86cf0cb6cbf910afb170cdb743cb5e",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1",
|
||||
"reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -1159,21 +1272,27 @@
|
|||
],
|
||||
"description": "Symfony EventDispatcher Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-05T16:37:49+00:00"
|
||||
"time": "2019-01-16T20:35:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/finder",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/finder.git",
|
||||
"reference": "9094d69e8c6ee3fe186a0ec5a4f1401e506071ce"
|
||||
"reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/9094d69e8c6ee3fe186a0ec5a4f1401e506071ce",
|
||||
"reference": "9094d69e8c6ee3fe186a0ec5a4f1401e506071ce",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/ef71816cbb264988bb57fe6a73f610888b9aa70c",
|
||||
"reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3"
|
||||
|
@ -1208,21 +1327,27 @@
|
|||
],
|
||||
"description": "Symfony Finder Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-03T09:07:35+00:00"
|
||||
"time": "2019-01-16T20:35:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-foundation",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/http-foundation.git",
|
||||
"reference": "a633d422a09242064ba24e44a6e1494c5126de86"
|
||||
"reference": "8d2318b73e0a1bc75baa699d00ebe2ae8b595a39"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/a633d422a09242064ba24e44a6e1494c5126de86",
|
||||
"reference": "a633d422a09242064ba24e44a6e1494c5126de86",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/8d2318b73e0a1bc75baa699d00ebe2ae8b595a39",
|
||||
"reference": "8d2318b73e0a1bc75baa699d00ebe2ae8b595a39",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -1262,21 +1387,27 @@
|
|||
],
|
||||
"description": "Symfony HttpFoundation Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-05T16:37:49+00:00"
|
||||
"time": "2019-01-29T09:49:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-kernel",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/http-kernel.git",
|
||||
"reference": "83de6543328917c18d5498eeb6bb6d36f7aab31b"
|
||||
"reference": "d56b1706abaa771eb6acd894c6787cb88f1dc97d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/83de6543328917c18d5498eeb6bb6d36f7aab31b",
|
||||
"reference": "83de6543328917c18d5498eeb6bb6d36f7aab31b",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/d56b1706abaa771eb6acd894c6787cb88f1dc97d",
|
||||
"reference": "d56b1706abaa771eb6acd894c6787cb88f1dc97d",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -1351,7 +1482,7 @@
|
|||
],
|
||||
"description": "Symfony HttpKernel Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-06T16:19:23+00:00"
|
||||
"time": "2019-02-03T12:47:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-ctype",
|
||||
|
@ -1365,7 +1496,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
|
||||
"reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
|
@ -1423,7 +1560,13 @@
|
|||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
|
||||
"reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
|
||||
"shasum": ""
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
|
@ -1472,17 +1615,23 @@
|
|||
},
|
||||
{
|
||||
"name": "symfony/translation",
|
||||
"version": "v4.2.2",
|
||||
"version": "v4.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/translation.git",
|
||||
"reference": "939fb792d73f2ce80e6ae9019d205fc480f1c9a0"
|
||||
"reference": "23fd7aac70d99a17a8e6473a41fec8fab3331050"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/939fb792d73f2ce80e6ae9019d205fc480f1c9a0",
|
||||
"reference": "939fb792d73f2ce80e6ae9019d205fc480f1c9a0",
|
||||
"shasum": ""
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/23fd7aac70d99a17a8e6473a41fec8fab3331050",
|
||||
"reference": "23fd7aac70d99a17a8e6473a41fec8fab3331050",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
|
@ -1541,7 +1690,7 @@
|
|||
],
|
||||
"description": "Symfony Translation Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-01-03T09:07:35+00:00"
|
||||
"time": "2019-01-27T23:11:39+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
|
|
@ -4,6 +4,7 @@ namespace JsonRpc\Server;
|
|||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\Factory;
|
||||
use itxq\apidoc\BootstrapApiDoc;
|
||||
use JsonRpc\Exception\RpcServerException;
|
||||
use Monolog\Logger;
|
||||
|
||||
|
@ -50,8 +51,21 @@ class JsonRpcTool
|
|||
);
|
||||
}
|
||||
}
|
||||
$methods = [];
|
||||
foreach ($this->config['map'] as $key => $item) {
|
||||
if (!in_array($item[0], $methods)) {
|
||||
$methods[] = $item[0];
|
||||
}
|
||||
}
|
||||
$config = [
|
||||
'class' => $methods,
|
||||
'filter_method' => [],
|
||||
];
|
||||
|
||||
$api = new BootstrapApiDoc($config);
|
||||
$data = $api->getApiDocTmp();
|
||||
$methods = $this->getMethods();
|
||||
$view->share('method', $method);
|
||||
$view->share('data',json_encode($data));
|
||||
$view->share('endpoint', $this->getEndpoint());
|
||||
$view->share('methods', $methods);
|
||||
$view->share('params', json_encode($params, JSON_PRETTY_PRINT));
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<nav class="col-md-3 d-none d-md-block bg-light sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<ul class="nav flex-column">
|
||||
<ul id="nav-content" class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="/rpc/doc.html">
|
||||
<span data-feather="home"></span>
|
||||
|
@ -55,7 +55,6 @@
|
|||
{{--</div>--}}
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
<label for="inputAddress">Method</label>
|
||||
<select class="form-control" id="method" name="method">
|
||||
|
@ -64,16 +63,52 @@
|
|||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="table-item col-md-12">
|
||||
<p class="table-title">
|
||||
<span class="btn btn-xs btn-info">请求参数</span>
|
||||
</p>
|
||||
<table id="paramRequird" class="table">
|
||||
<tr>
|
||||
<td>参数</td>
|
||||
<td>类型</td>
|
||||
<td>描述</td>
|
||||
<td>默认值</td>
|
||||
<td>是否必须</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-item col-md-12">
|
||||
<p class="table-title">
|
||||
<span class="btn btn-xs btn-info">返回参数</span>
|
||||
</p>
|
||||
<table id="returnRequird" class="table">
|
||||
<tr>
|
||||
<td>参数</td>
|
||||
<td>类型</td>
|
||||
<td>描述</td>
|
||||
<td>默认值</td>
|
||||
<td>是否必须</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-item col-md-12">
|
||||
<p class="table-title">
|
||||
<span class="btn btn-xs btn-info">状态码说明</span>
|
||||
</p>
|
||||
<table id="codeRequird" class="table">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
<label for="inputAddress">Params(json 数组)</label>
|
||||
<div id="editor" style="height: 300px">{{$params}}</div>
|
||||
<input type="hidden" name="params" id="params" value="{{$params}}">
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Request</button>
|
||||
<button id="submit-btn" type="submit" class="btn btn-primary">Request</button>
|
||||
</form>
|
||||
<div class="row col-md-12">
|
||||
@if( !empty($error) )
|
||||
|
@ -107,13 +142,106 @@
|
|||
<script src="https://cdn.bootcss.com/highlight.js/9.13.1/highlight.min.js"></script>
|
||||
<script src="https://cdn.bootcss.com/highlight.js/9.13.1/languages/json.min.js"></script>
|
||||
<script src="https://cdn.bootcss.com/ace/1.4.2/ace.js"></script>
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
var editor = ace.edit("editor");
|
||||
var params = <?php echo $params; ?>;
|
||||
var data = <?php echo $data; ?>;
|
||||
var error_empty = <?php echo isset($error) ? 0 : 1; ?>;
|
||||
console.log(params)
|
||||
editor.setTheme("ace/theme/monokai");
|
||||
editor.session.setMode("ace/mode/json");
|
||||
editor.on('change', function (e) {
|
||||
$('#params').val(editor.getValue())
|
||||
})
|
||||
$(document).ready(function(){
|
||||
intTable();
|
||||
var valKey =$("#method option:first-child").text();
|
||||
var data = <?php echo $data; ?>;
|
||||
var methodArray = data[valKey];
|
||||
changeTable(methodArray);
|
||||
if (error_empty > 0) {
|
||||
var storage = window.localStorage;
|
||||
var valKey = $("#method").find("option:selected").text();
|
||||
var d = JSON.stringify(params);
|
||||
storage.setItem(valKey, d);
|
||||
}
|
||||
changeNavShow()
|
||||
});
|
||||
$('#method').on('change', function() {
|
||||
var valKey = $("#method").find("option:selected").text();
|
||||
var methodArray = data[valKey];
|
||||
intTable()
|
||||
changeTable(methodArray)
|
||||
})
|
||||
function intTable() {
|
||||
$("#paramRequird").empty();
|
||||
$("#returnRequird").empty();
|
||||
$("#codeRequird").empty();
|
||||
var html1 = "<tr><td>参数</td><td>类型</td><td>描述</td><td>默认值</td><td>是否必须</td></tr>";
|
||||
var html2 = "<tr><td>参数</td><td>类型</td><td>描述</td>/tr>";
|
||||
var html3 = "<tr><td>状态码</td><td>描述</td></tr>";
|
||||
$(html1).appendTo("#paramRequird");
|
||||
$(html2).appendTo("#returnRequird");
|
||||
$(html3).appendTo("#codeRequird");
|
||||
}
|
||||
|
||||
function changeTable(params) {
|
||||
params.param.map(function (val, index) {
|
||||
var $trTemp = $("<tr></tr>");
|
||||
//往行里面追加 td单元格
|
||||
$trTemp.append("<td>"+ val.param_name +"</td>");
|
||||
$trTemp.append("<td>"+ val.param_type +"</td>");
|
||||
$trTemp.append("<td>"+ val.param_title +"</td>");
|
||||
$trTemp.append("<td>"+ val.param_default +"</td>");
|
||||
$trTemp.append("<td>"+ val.param_require +"</td>");
|
||||
$trTemp.appendTo("#paramRequird");
|
||||
})
|
||||
params.return.map(function (val, index) {
|
||||
var $trTemp = $("<tr></tr>");
|
||||
//往行里面追加 td单元格
|
||||
$trTemp.append("<td>"+ val.return_name +"</td>");
|
||||
$trTemp.append("<td>"+ val.return_type +"</td>");
|
||||
$trTemp.append("<td>"+ val.return_title +"</td>");
|
||||
$trTemp.appendTo("#returnRequird");
|
||||
})
|
||||
params.code.map(function (val, index) {
|
||||
var $trTemp = $("<tr></tr>");
|
||||
//往行里面追加 td单元格
|
||||
$trTemp.append("<td>"+ val.code +"</td>");
|
||||
$trTemp.append("<td>"+ val.content +"</td>");
|
||||
$trTemp.appendTo("#codeRequird");
|
||||
})
|
||||
}
|
||||
function changeLocoal(params) {
|
||||
var storage=window.localStorage;
|
||||
var valKey = $("#method").find("option:selected").text();
|
||||
var data=editor.getValue();
|
||||
var d=JSON.stringify(data).replaceAll("\r|\n|\\s", "");
|
||||
storage.setItem(valKey,d);
|
||||
}
|
||||
|
||||
function changeNavShow(){
|
||||
var storage=window.localStorage;
|
||||
for(var i=0;i<storage.length;i++){
|
||||
var key=storage.key(i);
|
||||
var $trTemp = $('<li class="nav-item"></li>');
|
||||
$trTemp.append('<a class="nav-link">'+ key +'</a>');
|
||||
$trTemp.appendTo("#nav-content");
|
||||
$trTemp.attr('methond',key)
|
||||
}
|
||||
}
|
||||
$('#nav-content').on('click','.nav-item', function(){
|
||||
var activeKey = $(this).attr('methond');
|
||||
var param = localStorage.getItem(activeKey)
|
||||
$('.nav-item').removeClass('bg-info');
|
||||
$(this).addClass('bg-info');
|
||||
$("#method").val(activeKey);
|
||||
var methodArray = data[activeKey];
|
||||
intTable();
|
||||
changeTable(methodArray);
|
||||
$('#params').val(param);
|
||||
editor.setValue(param)
|
||||
})
|
||||
</script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue
Block a user