roles.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: Roles
  6. description: Organisation of security roles
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. basePath: /geoserver/rest/security
  13. paths:
  14. /roles:
  15. get:
  16. operationId: rolesDefaultGet
  17. tags:
  18. - "Roles"
  19. summary: Query all roles
  20. description: Query all roles in the default role service.
  21. produces:
  22. - text/html
  23. - application/xml
  24. - application/json
  25. responses:
  26. 200:
  27. description: OK
  28. schema:
  29. $ref: "#/definitions/Roles"
  30. /roles/user/{user}:
  31. get:
  32. operationId: rolesDefaultUserGet
  33. tags:
  34. - "Roles"
  35. summary: Query all roles for user
  36. description: Query all roles for the user in the default role service.
  37. produces:
  38. - text/html
  39. - application/xml
  40. - application/json
  41. parameters:
  42. - name: user
  43. description: the name of the user
  44. in: path
  45. required: true
  46. type: string
  47. responses:
  48. 200:
  49. description: OK
  50. schema:
  51. $ref: "#/definitions/Roles"
  52. /roles/group/{group}:
  53. get:
  54. operationId: rolesDefaultGroupGet
  55. tags:
  56. - "Roles"
  57. summary: Query all roles for group
  58. description: Query all roles for the group in the default role service.
  59. produces:
  60. - text/html
  61. - application/xml
  62. - application/json
  63. parameters:
  64. - name: group
  65. description: the name of the group
  66. in: path
  67. required: true
  68. type: string
  69. responses:
  70. 200:
  71. description: OK
  72. schema:
  73. $ref: "#/definitions/Roles"
  74. /roles/service/{serviceName}/roles/:
  75. get:
  76. operationId: rolesGet
  77. tags:
  78. - "Roles"
  79. summary: Query all roles
  80. description: Query all roles in a particular role service.
  81. produces:
  82. - text/html
  83. - application/xml
  84. - application/json
  85. parameters:
  86. - name: serviceName
  87. description: the name of the role role service
  88. in: path
  89. required: true
  90. type: string
  91. responses:
  92. 200:
  93. description: OK
  94. schema:
  95. $ref: "#/definitions/Roles"
  96. /roles/service/{serviceName}/user/{user}:
  97. get:
  98. operationId: rolesUserGet
  99. tags:
  100. - "Roles"
  101. summary: Query all roles for user
  102. description: Query all roles for the user in a particular role service.
  103. produces:
  104. - text/html
  105. - application/xml
  106. - application/json
  107. parameters:
  108. - name: serviceName
  109. description: the name of the role role service
  110. in: path
  111. required: true
  112. type: string
  113. - name: user
  114. description: the name of the user
  115. in: path
  116. required: true
  117. type: string
  118. responses:
  119. 200:
  120. description: OK
  121. schema:
  122. $ref: "#/definitions/Roles"
  123. /roles/service/{serviceName}/group/{group}:
  124. get:
  125. operationId: rolesGroupGet
  126. tags:
  127. - "Roles"
  128. summary: Query all roles for group
  129. description: Query all roles for the group in a particular role service.
  130. produces:
  131. - text/html
  132. - application/xml
  133. - application/json
  134. parameters:
  135. - name: serviceName
  136. description: the name of the role role service
  137. in: path
  138. required: true
  139. type: string
  140. - name: group
  141. description: the name of the group
  142. in: path
  143. required: true
  144. type: string
  145. responses:
  146. 200:
  147. description: OK
  148. schema:
  149. $ref: "#/definitions/Roles"
  150. /roles/role/{role}:
  151. post:
  152. operationId: roleDefaultPost
  153. tags:
  154. - "Roles"
  155. summary: Add a role
  156. description: Add a role in the default role service.
  157. consumes:
  158. - application/json
  159. - application/xml
  160. parameters:
  161. - name: role
  162. description: the name of the role
  163. in: path
  164. required: true
  165. type: string
  166. responses:
  167. 200:
  168. description: OK
  169. delete:
  170. operationId: roleDefaultDelete
  171. tags:
  172. - "Roles"
  173. summary: Delete a role
  174. description: Delete a role in the default role service.
  175. consumes:
  176. - application/json
  177. - application/xml
  178. parameters:
  179. - name: role
  180. description: the name of the role
  181. in: path
  182. required: true
  183. type: string
  184. responses:
  185. 200:
  186. description: OK
  187. /roles/role/{role}/user/{user}:
  188. post:
  189. operationId: roleDefaultUserPost
  190. tags:
  191. - "Roles"
  192. summary: Associate a role with a user
  193. description: Associate an existing role in the default role service with a user.
  194. consumes:
  195. - application/json
  196. - application/xml
  197. parameters:
  198. - name: role
  199. description: the name of the role
  200. in: path
  201. required: true
  202. type: string
  203. - name: user
  204. description: the name of the user
  205. in: path
  206. required: true
  207. type: string
  208. responses:
  209. 200:
  210. description: OK
  211. delete:
  212. operationId: roleDefaultUserDelete
  213. tags:
  214. - "Roles"
  215. summary: Disassociate a role from a user
  216. description: Disassociate a role in the default role service with a user.
  217. consumes:
  218. - application/json
  219. - application/xml
  220. parameters:
  221. - name: role
  222. description: the name of the role
  223. in: path
  224. required: true
  225. type: string
  226. - name: user
  227. description: the name of the user
  228. in: path
  229. required: true
  230. type: string
  231. responses:
  232. 200:
  233. description: OK
  234. /roles/role/{role}/group/{group}:
  235. post:
  236. operationId: roleDefaultGroupPost
  237. tags:
  238. - "Roles"
  239. summary: Associate a role with a group
  240. description: Associate an existing role in the default role service with a group.
  241. consumes:
  242. - application/json
  243. - application/xml
  244. parameters:
  245. - name: role
  246. description: the name of the role
  247. in: path
  248. required: true
  249. type: string
  250. - name: group
  251. description: the name of the group
  252. in: path
  253. required: true
  254. type: string
  255. responses:
  256. 200:
  257. description: OK
  258. delete:
  259. operationId: roleDefaultGroupDelete
  260. tags:
  261. - "Roles"
  262. summary: Disassociate a role from a group
  263. description: Disassociate a role in the default role service with a group.
  264. consumes:
  265. - application/json
  266. - application/xml
  267. parameters:
  268. - name: role
  269. description: the name of the role
  270. in: path
  271. required: true
  272. type: string
  273. - name: group
  274. description: the name of the group
  275. in: path
  276. required: true
  277. type: string
  278. responses:
  279. 200:
  280. description: OK
  281. /service/{serviceName}/role/{role}:
  282. post:
  283. operationId: rolePost
  284. tags:
  285. - "Roles"
  286. summary: Add a role
  287. description: Add a role in a particular role service.
  288. consumes:
  289. - application/json
  290. - application/xml
  291. parameters:
  292. - name: serviceName
  293. description: the name of the role service
  294. in: path
  295. required: true
  296. type: string
  297. - name: role
  298. description: the name of the role
  299. in: path
  300. required: true
  301. type: string
  302. responses:
  303. 200:
  304. description: OK
  305. delete:
  306. operationId: roleDelete
  307. tags:
  308. - "Roles"
  309. summary: Delete a role
  310. description: Delete a role in a particular role service.
  311. consumes:
  312. - application/json
  313. - application/xml
  314. parameters:
  315. - name: serviceName
  316. description: the name of the role service
  317. in: path
  318. required: true
  319. type: string
  320. - name: role
  321. description: the name of the role
  322. in: path
  323. required: true
  324. type: string
  325. responses:
  326. 200:
  327. description: OK
  328. /service/{serviceName}/roles/role/{role}/user/{user}:
  329. post:
  330. operationId: roleUserPost
  331. tags:
  332. - "Roles"
  333. summary: Associate a role with a user
  334. description: Associate an existing role in a particular role service with a user.
  335. consumes:
  336. - application/json
  337. - application/xml
  338. parameters:
  339. - name: serviceName
  340. description: the name of the role service
  341. in: path
  342. required: true
  343. type: string
  344. - name: role
  345. description: the name of the role
  346. in: path
  347. required: true
  348. type: string
  349. - name: user
  350. description: the name of the user
  351. in: path
  352. required: true
  353. type: string
  354. responses:
  355. 200:
  356. description: OK
  357. delete:
  358. operationId: roleUserDelete
  359. tags:
  360. - "Roles"
  361. summary: Disassociate a role from a user
  362. description: Disassociate a role in a particular role service with a user.
  363. consumes:
  364. - application/json
  365. - application/xml
  366. parameters:
  367. - name: serviceName
  368. description: the name of the role service
  369. in: path
  370. required: true
  371. type: string
  372. - name: role
  373. description: the name of the role
  374. in: path
  375. required: true
  376. type: string
  377. - name: user
  378. description: the name of the user
  379. in: path
  380. required: true
  381. type: string
  382. responses:
  383. 200:
  384. description: OK
  385. /service/{serviceName}/roles/role/{role}/group/{group}:
  386. post:
  387. operationId: roleGroupPost
  388. tags:
  389. - "Roles"
  390. summary: Associate a role with a group
  391. description: Associate an existing role in a particular role service with a group.
  392. consumes:
  393. - application/json
  394. - application/xml
  395. parameters:
  396. - name: serviceName
  397. description: the name of the role service
  398. in: path
  399. required: true
  400. type: string
  401. - name: role
  402. description: the name of the role
  403. in: path
  404. required: true
  405. type: string
  406. - name: group
  407. description: the name of the group
  408. in: path
  409. required: true
  410. type: string
  411. responses:
  412. 200:
  413. description: OK
  414. delete:
  415. operationId: roleGroupDelete
  416. tags:
  417. - "Roles"
  418. summary: Disassociate a role from a group
  419. description: Disassociate a role in a particular role service with a group.
  420. consumes:
  421. - application/json
  422. - application/xml
  423. parameters:
  424. - name: serviceName
  425. description: the name of the role service
  426. in: path
  427. required: true
  428. type: string
  429. - name: role
  430. description: the name of the role
  431. in: path
  432. required: true
  433. type: string
  434. - name: group
  435. description: the name of the group
  436. in: path
  437. required: true
  438. type: string
  439. responses:
  440. 200:
  441. description: OK
  442. definitions:
  443. Roles:
  444. title: roles
  445. xml:
  446. name: roles
  447. type: array
  448. items:
  449. $ref: "#/definitions/Role"
  450. Role:
  451. title: role
  452. xml:
  453. name: role
  454. type: string