swagger.json 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "web框架 API 文档",
  5. "title": "web框架",
  6. "termsOfService": "http://swagger.io/terms/",
  7. "contact": {
  8. "name": "API Support",
  9. "url": "http://www.swagger.io/support",
  10. "email": "support@swagger.io"
  11. },
  12. "license": {
  13. "name": "Apache 2.0",
  14. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  15. },
  16. "version": "1.0"
  17. },
  18. "basePath": "/v1",
  19. "paths": {
  20. "/Auth/SignUp": {
  21. "post": {
  22. "description": "用户添加",
  23. "consumes": [
  24. "application/x-www-form-urlencoded"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "Auth"
  31. ],
  32. "summary": "用户添加",
  33. "parameters": [
  34. {
  35. "type": "string",
  36. "description": "用户名",
  37. "name": "userCode",
  38. "in": "formData",
  39. "required": true
  40. },
  41. {
  42. "type": "string",
  43. "description": "密码",
  44. "name": "password",
  45. "in": "formData",
  46. "required": true
  47. },
  48. {
  49. "type": "string",
  50. "description": "邮箱",
  51. "name": "email",
  52. "in": "formData"
  53. },
  54. {
  55. "type": "string",
  56. "description": "手机号",
  57. "name": "phone",
  58. "in": "formData"
  59. },
  60. {
  61. "type": "string",
  62. "description": "姓名",
  63. "name": "name",
  64. "in": "formData"
  65. }
  66. ],
  67. "responses": {
  68. "200": {
  69. "description": "OK",
  70. "schema": {
  71. "$ref": "#/definitions/controller.ResponseBase"
  72. }
  73. }
  74. }
  75. }
  76. },
  77. "/HrSensors/AddHrSensors": {
  78. "post": {
  79. "description": "添加商家公共心率设备",
  80. "consumes": [
  81. "application/x-www-form-urlencoded"
  82. ],
  83. "produces": [
  84. "application/json"
  85. ],
  86. "tags": [
  87. "HrSensors"
  88. ],
  89. "summary": "添加商家公共心率设备",
  90. "parameters": [
  91. {
  92. "type": "string",
  93. "description": "Token",
  94. "name": "token",
  95. "in": "formData",
  96. "required": true
  97. },
  98. {
  99. "type": "integer",
  100. "description": "商家ID",
  101. "name": "shopId",
  102. "in": "formData",
  103. "required": true
  104. },
  105. {
  106. "type": "integer",
  107. "description": "心率带Sn",
  108. "name": "sn",
  109. "in": "formData",
  110. "required": true
  111. },
  112. {
  113. "type": "string",
  114. "description": "场馆内编号 01 02",
  115. "name": "venueNo",
  116. "in": "formData"
  117. }
  118. ],
  119. "responses": {
  120. "200": {
  121. "description": "OK",
  122. "schema": {
  123. "$ref": "#/definitions/controller.ResponseBase"
  124. }
  125. }
  126. }
  127. }
  128. },
  129. "/HrSensors/AddPvtHrSensors": {
  130. "post": {
  131. "description": "添加会员私有心率设备",
  132. "consumes": [
  133. "application/x-www-form-urlencoded"
  134. ],
  135. "produces": [
  136. "application/json"
  137. ],
  138. "tags": [
  139. "HrSensors"
  140. ],
  141. "summary": "添加会员私有心率设备",
  142. "parameters": [
  143. {
  144. "type": "string",
  145. "description": "Token",
  146. "name": "token",
  147. "in": "formData",
  148. "required": true
  149. },
  150. {
  151. "type": "integer",
  152. "description": "商家ID",
  153. "name": "shopId",
  154. "in": "formData",
  155. "required": true
  156. },
  157. {
  158. "type": "integer",
  159. "description": "心率带Sn",
  160. "name": "sn",
  161. "in": "formData",
  162. "required": true
  163. },
  164. {
  165. "type": "integer",
  166. "description": "用户ID",
  167. "name": "userId",
  168. "in": "formData",
  169. "required": true
  170. }
  171. ],
  172. "responses": {
  173. "200": {
  174. "description": "OK",
  175. "schema": {
  176. "$ref": "#/definitions/controller.ResponseBase"
  177. }
  178. }
  179. }
  180. }
  181. },
  182. "/Test/UserAdd": {
  183. "post": {
  184. "description": "会员用户添加",
  185. "consumes": [
  186. "application/x-www-form-urlencoded"
  187. ],
  188. "produces": [
  189. "application/json"
  190. ],
  191. "tags": [
  192. "Test"
  193. ],
  194. "summary": "会员用户添加",
  195. "parameters": [
  196. {
  197. "type": "string",
  198. "description": "姓名",
  199. "name": "name",
  200. "in": "formData",
  201. "required": true
  202. }
  203. ],
  204. "responses": {
  205. "200": {
  206. "description": "OK",
  207. "schema": {
  208. "$ref": "#/definitions/controller.ResponseBase"
  209. }
  210. }
  211. }
  212. }
  213. },
  214. "/Test/UserListQuery": {
  215. "post": {
  216. "description": "会员用户查询",
  217. "consumes": [
  218. "application/x-www-form-urlencoded"
  219. ],
  220. "produces": [
  221. "application/json"
  222. ],
  223. "tags": [
  224. "Test"
  225. ],
  226. "summary": "会员用户查询",
  227. "responses": {
  228. "200": {
  229. "description": "OK",
  230. "schema": {
  231. "$ref": "#/definitions/controller.UserList"
  232. }
  233. }
  234. }
  235. }
  236. },
  237. "/User/ShopCoachAdd": {
  238. "post": {
  239. "description": "商家教练添加",
  240. "consumes": [
  241. "application/x-www-form-urlencoded"
  242. ],
  243. "produces": [
  244. "application/json"
  245. ],
  246. "tags": [
  247. "User"
  248. ],
  249. "summary": "商家教练添加",
  250. "parameters": [
  251. {
  252. "type": "string",
  253. "description": "Token",
  254. "name": "token",
  255. "in": "formData",
  256. "required": true
  257. },
  258. {
  259. "type": "integer",
  260. "description": "店铺ID",
  261. "name": "shopId",
  262. "in": "formData",
  263. "required": true
  264. },
  265. {
  266. "type": "string",
  267. "description": "登陆用户名也是手机号",
  268. "name": "phone",
  269. "in": "formData",
  270. "required": true
  271. },
  272. {
  273. "type": "string",
  274. "description": "姓名",
  275. "name": "name",
  276. "in": "formData",
  277. "required": true
  278. },
  279. {
  280. "type": "string",
  281. "description": "密码",
  282. "name": "pwd",
  283. "in": "formData",
  284. "required": true
  285. },
  286. {
  287. "type": "integer",
  288. "description": "性别 1:男, 2:女",
  289. "name": "sex",
  290. "in": "formData",
  291. "required": true
  292. },
  293. {
  294. "type": "string",
  295. "description": "备注",
  296. "name": "memo",
  297. "in": "formData"
  298. }
  299. ],
  300. "responses": {
  301. "200": {
  302. "description": "OK",
  303. "schema": {
  304. "$ref": "#/definitions/controller.ResponseBase"
  305. }
  306. }
  307. }
  308. }
  309. },
  310. "/User/ShopCoachEdit": {
  311. "post": {
  312. "description": "商家教练基本信息修改",
  313. "consumes": [
  314. "application/x-www-form-urlencoded"
  315. ],
  316. "produces": [
  317. "application/json"
  318. ],
  319. "tags": [
  320. "User"
  321. ],
  322. "summary": "商家教练基本信息修改",
  323. "parameters": [
  324. {
  325. "type": "string",
  326. "description": "Token",
  327. "name": "token",
  328. "in": "formData",
  329. "required": true
  330. },
  331. {
  332. "type": "integer",
  333. "description": "教练ID",
  334. "name": "ssId",
  335. "in": "formData",
  336. "required": true
  337. },
  338. {
  339. "type": "string",
  340. "description": "手机号",
  341. "name": "phone",
  342. "in": "formData"
  343. },
  344. {
  345. "type": "string",
  346. "description": "密码",
  347. "name": "pwd",
  348. "in": "formData"
  349. },
  350. {
  351. "type": "string",
  352. "description": "姓名",
  353. "name": "name",
  354. "in": "formData"
  355. },
  356. {
  357. "type": "string",
  358. "description": "备注",
  359. "name": "memo",
  360. "in": "formData"
  361. },
  362. {
  363. "type": "integer",
  364. "description": "性别 1:男, 2:女",
  365. "name": "sex",
  366. "in": "formData",
  367. "required": true
  368. }
  369. ],
  370. "responses": {
  371. "200": {
  372. "description": "OK",
  373. "schema": {
  374. "$ref": "#/definitions/controller.ResponseBase"
  375. }
  376. }
  377. }
  378. }
  379. },
  380. "/User/ShopCoachListQuery": {
  381. "post": {
  382. "description": "会员用户列表(带分页)",
  383. "consumes": [
  384. "application/x-www-form-urlencoded"
  385. ],
  386. "produces": [
  387. "application/json"
  388. ],
  389. "tags": [
  390. "User"
  391. ],
  392. "summary": "会员用户列表(带分页)",
  393. "parameters": [
  394. {
  395. "type": "string",
  396. "description": "Token",
  397. "name": "token",
  398. "in": "formData",
  399. "required": true
  400. },
  401. {
  402. "type": "string",
  403. "description": "手机号",
  404. "name": "phone",
  405. "in": "formData"
  406. },
  407. {
  408. "type": "string",
  409. "description": "姓名",
  410. "name": "name",
  411. "in": "formData"
  412. },
  413. {
  414. "type": "string",
  415. "description": "当前条",
  416. "name": "start",
  417. "in": "formData",
  418. "required": true
  419. },
  420. {
  421. "type": "string",
  422. "description": "每页条数",
  423. "name": "tableMax",
  424. "in": "formData",
  425. "required": true
  426. }
  427. ],
  428. "responses": {
  429. "200": {
  430. "description": "OK",
  431. "schema": {
  432. "$ref": "#/definitions/controller.ShopUserInfo"
  433. }
  434. }
  435. }
  436. }
  437. },
  438. "/User/ShopCoachSimpleQuery": {
  439. "post": {
  440. "description": "本店会员用户基本信息查询",
  441. "consumes": [
  442. "application/x-www-form-urlencoded"
  443. ],
  444. "produces": [
  445. "application/json"
  446. ],
  447. "tags": [
  448. "User"
  449. ],
  450. "summary": "本店会员用户基本信息查询",
  451. "parameters": [
  452. {
  453. "type": "string",
  454. "description": "Token",
  455. "name": "token",
  456. "in": "formData",
  457. "required": true
  458. },
  459. {
  460. "type": "integer",
  461. "description": "商家ID",
  462. "name": "shopId",
  463. "in": "formData"
  464. }
  465. ],
  466. "responses": {
  467. "200": {
  468. "description": "OK",
  469. "schema": {
  470. "$ref": "#/definitions/controller.ShopCoachSimpleInfo"
  471. }
  472. }
  473. }
  474. }
  475. },
  476. "/User/ShopCoachStatusEdit": {
  477. "post": {
  478. "description": "商家教练状态修改",
  479. "consumes": [
  480. "application/x-www-form-urlencoded"
  481. ],
  482. "produces": [
  483. "application/json"
  484. ],
  485. "tags": [
  486. "User"
  487. ],
  488. "summary": "商家教练状态修改",
  489. "parameters": [
  490. {
  491. "type": "string",
  492. "description": "Token",
  493. "name": "token",
  494. "in": "formData",
  495. "required": true
  496. },
  497. {
  498. "type": "integer",
  499. "description": "教练ID",
  500. "name": "ssId",
  501. "in": "formData",
  502. "required": true
  503. },
  504. {
  505. "type": "integer",
  506. "description": "状态 1:启用\t 8:禁用 9:删除",
  507. "name": "status",
  508. "in": "formData",
  509. "required": true
  510. }
  511. ],
  512. "responses": {
  513. "200": {
  514. "description": "OK",
  515. "schema": {
  516. "$ref": "#/definitions/controller.ResponseBase"
  517. }
  518. }
  519. }
  520. }
  521. },
  522. "/User/ShopUserAdd": {
  523. "post": {
  524. "description": "会员用户添加",
  525. "consumes": [
  526. "application/x-www-form-urlencoded"
  527. ],
  528. "produces": [
  529. "application/json"
  530. ],
  531. "tags": [
  532. "User"
  533. ],
  534. "summary": "会员用户添加",
  535. "parameters": [
  536. {
  537. "type": "string",
  538. "description": "Token",
  539. "name": "token",
  540. "in": "formData",
  541. "required": true
  542. },
  543. {
  544. "type": "integer",
  545. "description": "店铺ID",
  546. "name": "shopId",
  547. "in": "formData",
  548. "required": true
  549. },
  550. {
  551. "type": "string",
  552. "description": "登陆用户名也是手机号",
  553. "name": "phone",
  554. "in": "formData",
  555. "required": true
  556. },
  557. {
  558. "type": "string",
  559. "description": "姓名",
  560. "name": "name",
  561. "in": "formData",
  562. "required": true
  563. },
  564. {
  565. "type": "integer",
  566. "description": "性别 1:男, 2:女",
  567. "name": "sex",
  568. "in": "formData",
  569. "required": true
  570. },
  571. {
  572. "type": "string",
  573. "description": "生日",
  574. "name": "birthday",
  575. "in": "formData",
  576. "required": true
  577. },
  578. {
  579. "type": "integer",
  580. "description": "身高",
  581. "name": "height",
  582. "in": "formData",
  583. "required": true
  584. },
  585. {
  586. "type": "string",
  587. "description": "体重 ",
  588. "name": "weight",
  589. "in": "formData",
  590. "required": true
  591. },
  592. {
  593. "type": "integer",
  594. "description": "静态心率",
  595. "name": "staticHr",
  596. "in": "formData"
  597. },
  598. {
  599. "type": "string",
  600. "description": "头像",
  601. "name": "head",
  602. "in": "formData"
  603. },
  604. {
  605. "type": "string",
  606. "description": "备注",
  607. "name": "memo",
  608. "in": "formData"
  609. }
  610. ],
  611. "responses": {
  612. "200": {
  613. "description": "OK",
  614. "schema": {
  615. "$ref": "#/definitions/controller.ResponseBase"
  616. }
  617. }
  618. }
  619. }
  620. },
  621. "/User/ShopUserEdit": {
  622. "post": {
  623. "description": "会员用户基本信息修改",
  624. "consumes": [
  625. "application/x-www-form-urlencoded"
  626. ],
  627. "produces": [
  628. "application/json"
  629. ],
  630. "tags": [
  631. "User"
  632. ],
  633. "summary": "会员用户基本信息修改",
  634. "parameters": [
  635. {
  636. "type": "string",
  637. "description": "Token",
  638. "name": "token",
  639. "in": "formData",
  640. "required": true
  641. },
  642. {
  643. "type": "integer",
  644. "description": "用户Id",
  645. "name": "userId",
  646. "in": "formData",
  647. "required": true
  648. },
  649. {
  650. "type": "string",
  651. "description": "手机号",
  652. "name": "phone",
  653. "in": "formData"
  654. },
  655. {
  656. "type": "string",
  657. "description": "姓名",
  658. "name": "name",
  659. "in": "formData"
  660. },
  661. {
  662. "type": "string",
  663. "description": "备注",
  664. "name": "memo",
  665. "in": "formData"
  666. },
  667. {
  668. "type": "string",
  669. "description": "生日",
  670. "name": "birthday",
  671. "in": "formData",
  672. "required": true
  673. },
  674. {
  675. "type": "integer",
  676. "description": "身高",
  677. "name": "height",
  678. "in": "formData",
  679. "required": true
  680. },
  681. {
  682. "type": "string",
  683. "description": "体重",
  684. "name": "weight",
  685. "in": "formData",
  686. "required": true
  687. },
  688. {
  689. "type": "integer",
  690. "description": "性别 1:男, 2:女",
  691. "name": "sex",
  692. "in": "formData",
  693. "required": true
  694. },
  695. {
  696. "type": "integer",
  697. "description": "静态心率",
  698. "name": "staticHr",
  699. "in": "formData"
  700. },
  701. {
  702. "type": "string",
  703. "description": "头像URL",
  704. "name": "head",
  705. "in": "formData"
  706. }
  707. ],
  708. "responses": {
  709. "200": {
  710. "description": "OK",
  711. "schema": {
  712. "$ref": "#/definitions/controller.ResponseBase"
  713. }
  714. }
  715. }
  716. }
  717. },
  718. "/User/ShopUserListQuery": {
  719. "post": {
  720. "description": "会员用户列表(带分页)",
  721. "consumes": [
  722. "application/x-www-form-urlencoded"
  723. ],
  724. "produces": [
  725. "application/json"
  726. ],
  727. "tags": [
  728. "User"
  729. ],
  730. "summary": "会员用户列表(带分页)",
  731. "parameters": [
  732. {
  733. "type": "string",
  734. "description": "Token",
  735. "name": "token",
  736. "in": "formData",
  737. "required": true
  738. },
  739. {
  740. "type": "string",
  741. "description": "手机号",
  742. "name": "phone",
  743. "in": "formData"
  744. },
  745. {
  746. "type": "string",
  747. "description": "姓名",
  748. "name": "name",
  749. "in": "formData"
  750. },
  751. {
  752. "type": "string",
  753. "description": "当前条",
  754. "name": "start",
  755. "in": "formData",
  756. "required": true
  757. },
  758. {
  759. "type": "string",
  760. "description": "每页条数",
  761. "name": "tableMax",
  762. "in": "formData",
  763. "required": true
  764. }
  765. ],
  766. "responses": {
  767. "200": {
  768. "description": "OK",
  769. "schema": {
  770. "$ref": "#/definitions/controller.ShopUserInfo"
  771. }
  772. }
  773. }
  774. }
  775. },
  776. "/User/ShopUserSimpleQuery": {
  777. "post": {
  778. "description": "本店会员用户基本信息查询",
  779. "consumes": [
  780. "application/x-www-form-urlencoded"
  781. ],
  782. "produces": [
  783. "application/json"
  784. ],
  785. "tags": [
  786. "User"
  787. ],
  788. "summary": "本店会员用户基本信息查询",
  789. "parameters": [
  790. {
  791. "type": "string",
  792. "description": "Token",
  793. "name": "token",
  794. "in": "formData",
  795. "required": true
  796. },
  797. {
  798. "type": "integer",
  799. "description": "商家ID",
  800. "name": "shopId",
  801. "in": "formData"
  802. }
  803. ],
  804. "responses": {
  805. "200": {
  806. "description": "OK",
  807. "schema": {
  808. "$ref": "#/definitions/controller.ShopUserSimpleInfo"
  809. }
  810. }
  811. }
  812. }
  813. },
  814. "/User/ShopUserStatusEdit": {
  815. "post": {
  816. "description": "会员用户状态修改",
  817. "consumes": [
  818. "application/x-www-form-urlencoded"
  819. ],
  820. "produces": [
  821. "application/json"
  822. ],
  823. "tags": [
  824. "User"
  825. ],
  826. "summary": "会员用户状态修改",
  827. "parameters": [
  828. {
  829. "type": "string",
  830. "description": "Token",
  831. "name": "token",
  832. "in": "formData",
  833. "required": true
  834. },
  835. {
  836. "type": "integer",
  837. "description": "用户ID",
  838. "name": "userId",
  839. "in": "formData",
  840. "required": true
  841. },
  842. {
  843. "type": "integer",
  844. "description": "状态 1:启用\t 8:禁用 9:删除",
  845. "name": "status",
  846. "in": "formData",
  847. "required": true
  848. }
  849. ],
  850. "responses": {
  851. "200": {
  852. "description": "OK",
  853. "schema": {
  854. "$ref": "#/definitions/controller.ResponseBase"
  855. }
  856. }
  857. }
  858. }
  859. }
  860. },
  861. "definitions": {
  862. "controller.ResponseBase": {
  863. "type": "object",
  864. "properties": {
  865. "code": {
  866. "type": "integer"
  867. },
  868. "memo": {
  869. "type": "string"
  870. }
  871. }
  872. },
  873. "controller.ShopCoachSimpleInfo": {
  874. "type": "object",
  875. "properties": {
  876. "code": {
  877. "type": "integer"
  878. },
  879. "memo": {
  880. "type": "string"
  881. },
  882. "rs": {
  883. "type": "string"
  884. }
  885. }
  886. },
  887. "controller.ShopUserInfo": {
  888. "type": "object",
  889. "properties": {
  890. "code": {
  891. "type": "integer"
  892. },
  893. "memo": {
  894. "type": "string"
  895. },
  896. "pageCount": {
  897. "type": "integer"
  898. },
  899. "rs": {
  900. "type": "string"
  901. }
  902. }
  903. },
  904. "controller.ShopUserSimpleInfo": {
  905. "type": "object",
  906. "properties": {
  907. "code": {
  908. "type": "integer"
  909. },
  910. "memo": {
  911. "type": "string"
  912. },
  913. "rs": {
  914. "type": "string"
  915. }
  916. }
  917. },
  918. "controller.UserList": {
  919. "type": "object",
  920. "properties": {
  921. "code": {
  922. "type": "integer"
  923. },
  924. "memo": {
  925. "type": "string"
  926. },
  927. "rs": {
  928. "type": "array",
  929. "items": {
  930. "type": "object"
  931. }
  932. }
  933. }
  934. }
  935. },
  936. "securityDefinitions": {
  937. "ApiKeyAuth": {
  938. "type": "apiKey",
  939. "name": "Authorization",
  940. "in": "header"
  941. },
  942. "BasicAuth": {
  943. "type": "basic"
  944. },
  945. "OAuth2AccessCode": {
  946. "type": "oauth2",
  947. "flow": "accessCode",
  948. "authorizationUrl": "https://example.com/oauth/authorize",
  949. "tokenUrl": "https://example.com/oauth/token",
  950. "scopes": {
  951. "admin": " Grants read and write access to administrative information"
  952. }
  953. },
  954. "OAuth2Application": {
  955. "type": "oauth2",
  956. "flow": "application",
  957. "tokenUrl": "https://example.com/oauth/token",
  958. "scopes": {
  959. "admin": " Grants read and write access to administrative information",
  960. "write": " Grants write access"
  961. }
  962. },
  963. "OAuth2Implicit": {
  964. "type": "oauth2",
  965. "flow": "implicit",
  966. "authorizationUrl": "https://example.com/oauth/authorize",
  967. "scopes": {
  968. "admin": " Grants read and write access to administrative information",
  969. "write": " Grants write access"
  970. }
  971. },
  972. "OAuth2Password": {
  973. "type": "oauth2",
  974. "flow": "password",
  975. "tokenUrl": "https://example.com/oauth/token",
  976. "scopes": {
  977. "admin": " Grants read and write access to administrative information",
  978. "read": " Grants read access",
  979. "write": " Grants write access"
  980. }
  981. }
  982. }
  983. }