settings.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer Settings
  6. description: The Settings area shows global configuration for the server
  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
  13. paths:
  14. /settings:
  15. get:
  16. operationId: getSettings
  17. tags:
  18. - "Settings"
  19. summary: Get a list of all global settings
  20. description: Displays a list of all global settings on the server. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/settings.xml" for XML).
  21. produces:
  22. - application/xml
  23. - application/json
  24. - text/html
  25. responses:
  26. 200:
  27. description: OK
  28. schema:
  29. $ref: "#/definitions/Global"
  30. examples:
  31. application/xml: |
  32. <global>
  33. <settings>
  34. <id>SettingsInfoImpl-68f6c583:154ca420c47:-8000</id>
  35. <contact>
  36. <addressCity>Alexandria</addressCity>
  37. <addressCountry>Egypt</addressCountry>
  38. <addressType>Work</addressType>
  39. <contactEmail>claudius.ptolomaeus@gmail.com</contactEmail>
  40. <contactOrganization>The Ancient Geographers</contactOrganization>
  41. <contactPerson>Claudius Ptolomaeus</contactPerson>
  42. <contactPosition>Chief Geographer</contactPosition>
  43. </contact>
  44. <charset>UTF-8</charset>
  45. <numDecimals>8</numDecimals>
  46. <onlineResource>http://geoserver.org</onlineResource>
  47. <verbose>false</verbose>
  48. <verboseExceptions>false</verboseExceptions>
  49. <localWorkspaceIncludesPrefix>false</localWorkspaceIncludesPrefix>
  50. </settings>
  51. <jai>
  52. <allowInterpolation>false</allowInterpolation>
  53. <recycling>false</recycling>
  54. <tilePriority>5</tilePriority>
  55. <tileThreads>7</tileThreads>
  56. <memoryCapacity>0.5</memoryCapacity>
  57. <memoryThreshold>0.75</memoryThreshold>
  58. <imageIOCache>false</imageIOCache>
  59. <pngAcceleration>true</pngAcceleration>
  60. <jpegAcceleration>true</jpegAcceleration>
  61. <allowNativeMosaic>false</allowNativeMosaic>
  62. <allowNativeWarp>false</allowNativeWarp>
  63. </jai>
  64. <coverageAccess>
  65. <maxPoolSize>10</maxPoolSize>
  66. <corePoolSize>5</corePoolSize>
  67. <keepAliveTime>30000</keepAliveTime>
  68. <queueType>UNBOUNDED</queueType>
  69. <imageIOCacheThreshold>10240</imageIOCacheThreshold>
  70. </coverageAccess>
  71. <updateSequence>180</updateSequence>
  72. <featureTypeCacheSize>0</featureTypeCacheSize>
  73. <globalServices>true</globalServices>
  74. <xmlPostRequestLogBufferSize>1024</xmlPostRequestLogBufferSize>
  75. </global>
  76. application/json: |
  77. {
  78. "global": {
  79. "settings": {
  80. "id": "SettingsInfoImpl-68f6c583:154ca420c47:-8000",
  81. "contact": {
  82. "addressCity": "Alexandria",
  83. "addressCountry": "Egypt",
  84. "addressType": "Work",
  85. "contactEmail": "claudius.ptolomaeus@gmail.com",
  86. "contactOrganization": "The Ancient Geographers",
  87. "contactPerson": "Claudius Ptolomaeus",
  88. "contactPosition": "Chief Geographer"
  89. },
  90. "charset": "UTF-8",
  91. "numDecimals": 8,
  92. "onlineResource": "http://geoserver.org",
  93. "verbose": false,
  94. "verboseExceptions": false,
  95. "localWorkspaceIncludesPrefix": false
  96. },
  97. "jai": {
  98. "allowInterpolation": false,
  99. "recycling": false,
  100. "tilePriority": 5,
  101. "tileThreads": 7,
  102. "memoryCapacity": 0.5,
  103. "memoryThreshold": 0.75,
  104. "imageIOCache": false,
  105. "pngAcceleration": true,
  106. "jpegAcceleration": true,
  107. "allowNativeMosaic": false,
  108. "allowNativeWarp": false
  109. },
  110. "coverageAccess": {
  111. "maxPoolSize": 10,
  112. "corePoolSize": 5,
  113. "keepAliveTime": 30000,
  114. "queueType": "UNBOUNDED",
  115. "imageIOCacheThreshold": 10240
  116. },
  117. "updateSequence": 180,
  118. "featureTypeCacheSize": 0,
  119. "globalServices": true,
  120. "xmlPostRequestLogBufferSize": 1024
  121. }
  122. }
  123. post:
  124. operationId: postSettings
  125. tags:
  126. - "Settings"
  127. description: Invalid. Use PUT to update settings.
  128. responses:
  129. 405:
  130. description: Method Not Allowed
  131. put:
  132. operationId: putSettings*
  133. tags:
  134. - "Settings"
  135. summary: Update settings
  136. description: Updates global settings on the server.
  137. parameters:
  138. - name: settingsBody
  139. description: The settings information to upload.
  140. in: body
  141. required: true
  142. schema:
  143. $ref: "#/definitions/Global"
  144. consumes:
  145. - application/xml
  146. - application/json
  147. responses:
  148. 200:
  149. description: OK
  150. delete:
  151. operationId: deleteSettings
  152. tags:
  153. - "Settings"
  154. description: Invalid. Use PUT to update settings.
  155. responses:
  156. 405:
  157. description: Method Not Allowed
  158. /settings/contact:
  159. get:
  160. operationId: getContactSettings
  161. tags:
  162. - "Settings"
  163. summary: Get a list of all global contact settings
  164. description: Displays a list of all global contact settings on the server. This is a subset of what is available at the /settings endpoint. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/settings/contact.xml" for XML).
  165. produces:
  166. - application/xml
  167. - application/json
  168. - text/html
  169. responses:
  170. 200:
  171. description: OK
  172. schema:
  173. $ref: "#/definitions/Contact"
  174. examples:
  175. application/xml: |
  176. <contact>
  177. <addressCity>Alexandria</addressCity>
  178. <addressCountry>Egypt</addressCountry>
  179. <addressType>Work</addressType>
  180. <contactEmail>claudius.ptolomaeus@gmail.com</contactEmail>
  181. <contactOrganization>The Ancient Geographers</contactOrganization>
  182. <contactPerson>Claudius Ptolomaeus</contactPerson>
  183. <contactPosition>Chief Geographer</contactPosition>
  184. </contact>
  185. application/json: |
  186. {
  187. "contact": {
  188. "addressCity": "Alexandria",
  189. "addressCountry": "Egypt",
  190. "addressType": "Work",
  191. "contactEmail": "claudius.ptolomaeus@gmail.com",
  192. "contactOrganization": "The Ancient Geographers",
  193. "contactPerson": "Claudius Ptolomaeus",
  194. "contactPosition": "Chief Geographer"
  195. }
  196. }
  197. post:
  198. operationId: postContactSettings
  199. tags:
  200. - "Settings"
  201. description: Invalid. Use PUT to update contact settings.
  202. responses:
  203. 405:
  204. description: Method Not Allowed
  205. put:
  206. operationId: putContactSettings
  207. tags:
  208. - "Settings"
  209. summary: Update contact settings
  210. description: Updates global contact settings on the server.
  211. parameters:
  212. - name: settingscontactBody
  213. description: The contact settings information to upload.
  214. in: body
  215. required: true
  216. schema:
  217. $ref: "#/definitions/Contact"
  218. consumes:
  219. - application/xml
  220. - application/json
  221. responses:
  222. 200:
  223. description: OK
  224. delete:
  225. operationId: deleteContactSettings
  226. tags:
  227. - "Settings"
  228. description: Invalid. Use PUT to update contact settings.
  229. responses:
  230. 405:
  231. description: Method Not Allowed
  232. /workspaces/{workspace}/settings:
  233. parameters:
  234. - name: workspace
  235. in: path
  236. required: true
  237. type: string
  238. description: The workspace name
  239. get:
  240. operationId: getWorkspaceSettings
  241. tags:
  242. - "Settings"
  243. summary: Get a list of all workspace-specific settings
  244. description: Displays a list of all workspace-specific settings. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/settings.xml" for XML).
  245. produces:
  246. - application/xml
  247. - application/json
  248. - text/html
  249. responses:
  250. 200:
  251. description: OK
  252. schema:
  253. $ref: "#/definitions/WorkspaceSettings"
  254. examples:
  255. application/xml: |
  256. <settings>
  257. <contact>
  258. <id>contact</id>
  259. </contact>
  260. <charset>UTF-8</charset>
  261. <numDecimals>4</numDecimals>
  262. <verbose>false</verbose>
  263. <verboseExceptions>false</verboseExceptions>
  264. <localWorkspaceIncludesPrefix>false</localWorkspaceIncludesPrefix>
  265. </settings>
  266. application/json: |
  267. {
  268. "settings": {
  269. "contact": {
  270. "id": "contact"
  271. },
  272. "charset": "UTF-8",
  273. "numDecimals": 4,
  274. "verbose": false,
  275. "verboseExceptions": false,
  276. "localWorkspaceIncludesPrefix": false
  277. }
  278. }
  279. post:
  280. operationId: postWorkspaceSettings
  281. tags:
  282. - "Settings"
  283. summary: Create workspace-specific settings
  284. description: Create new workspace-specific settings on the server.
  285. parameters:
  286. - name: settingsBody
  287. description: The settings information to upload.
  288. in: body
  289. required: true
  290. schema:
  291. $ref: "#/definitions/WorkspaceSettings"
  292. consumes:
  293. - application/xml
  294. - application/json
  295. responses:
  296. 201:
  297. description: Created
  298. 500:
  299. description: "Internal Server Error: Settings already exist for workspace"
  300. put:
  301. operationId: putWorkspaceSettings
  302. tags:
  303. - "Settings"
  304. summary: Update workspace-specific settings
  305. description: Updates workspace-specific settings on the server.
  306. parameters:
  307. - name: settingsBody
  308. description: The settings information to upload.
  309. in: body
  310. required: true
  311. schema:
  312. $ref: "#/definitions/WorkspaceSettings"
  313. consumes:
  314. - application/xml
  315. - application/json
  316. responses:
  317. 200:
  318. description: OK
  319. delete:
  320. operationId: deleteWorkspaceSettings
  321. tags:
  322. - "Settings"
  323. description: Delete the settings for this workspace.
  324. responses:
  325. 200:
  326. description: OK
  327. definitions:
  328. Global:
  329. type: object
  330. xml:
  331. name: global
  332. properties:
  333. settings:
  334. $ref: "#/definitions/Settings"
  335. jai:
  336. $ref: "#/definitions/JAI"
  337. coverageAccess:
  338. $ref: "#/definitions/CoverageAccess"
  339. updateSequence:
  340. type: number
  341. description: Number of times the server configuration has been modified
  342. featureTypeCacheSize:
  343. type: number
  344. description: Maximum number of datastore connections and schemas that can be kept in memory
  345. globalServices:
  346. type: boolean
  347. description: Allow access to both global services and virtual services
  348. xmlPostRequestLogBufferSize:
  349. type: number
  350. description: With more verbose logging levels, sets the size of the buffer GeoServer will use to log the body of POST requests
  351. Settings:
  352. type: object
  353. xml:
  354. name: settings
  355. properties:
  356. id:
  357. type: string
  358. description: For internal use only. Do not modify.
  359. contact:
  360. $ref: "#/definitions/Contact"
  361. charset:
  362. type: string
  363. description: Character set to use for encoding (such as UTF-8)
  364. numDecimals:
  365. type: number
  366. description: Maximum nuber of decimal places to use (GML and GeoJSON output)
  367. onlineResource:
  368. type: string
  369. description: Server admin URL
  370. verbose:
  371. type: boolean
  372. description: Return XML with newlines and indents
  373. verboseExceptions:
  374. type: boolean
  375. description: Return service exceptions with full Java stack traces
  376. localWorkspaceIncludesPrefix:
  377. type: boolean
  378. description: Show namespace prefix when using virtual service
  379. Contact:
  380. type: object
  381. xml:
  382. name: contact
  383. properties:
  384. addressCity:
  385. type: string
  386. description: Server admin city
  387. addressCountry:
  388. type: string
  389. description: Server admin country
  390. addressType:
  391. type: string
  392. description: Type of address
  393. contactEmail:
  394. type: string
  395. description: Server admin email
  396. contactOrganization:
  397. type: string
  398. description: Server admin organization
  399. contactPerson:
  400. type: string
  401. description: Server admin point of contact
  402. contactPosition:
  403. type: string
  404. description: Server admin point of contact job title
  405. JAI:
  406. type: object
  407. properties:
  408. allowInterpolation:
  409. type: boolean
  410. description: No longer used
  411. recycling:
  412. type: boolean
  413. description: Tile recycling
  414. tilePriority:
  415. type: number
  416. description: Tile thread priority
  417. tileThreads:
  418. type: number
  419. description: Tile threads
  420. memoryCapacity:
  421. type: number
  422. description: Memory capacity
  423. memoryThreshold:
  424. type: number
  425. description: Memory threshold
  426. imageIOCache:
  427. type: boolean
  428. description: Enables Image IO cache
  429. pngAcceleration:
  430. type: boolean
  431. description: Enable JAI PNG native acceleration
  432. jpegAcceleration:
  433. type: boolean
  434. description: Enable JAI JPEG native acceleration
  435. allowNativeMosaic:
  436. type: boolean
  437. description: Enable JAI mosaic native acceleration
  438. allowNativeWarp:
  439. type: boolean
  440. description: Enable JAI native warp acceleration
  441. CoverageAccess:
  442. type: object
  443. properties:
  444. maxPoolSize:
  445. type: number
  446. description: Maximum number of threads that the Java ThreadPoolExecutor will create
  447. corePoolSize:
  448. type: number
  449. description: Number of threads that the Java ThreadPoolExecutor will create
  450. keepAlilveTime:
  451. type: number
  452. description: Timeout for threads to be terminated if they are idle and more than the core pool number exist.
  453. queueType:
  454. type: string
  455. description: Type of Blocking Queue to managed submitted tasks. Can be either UNBOUNDED or DIRECT.
  456. imageIOCacheThreshold:
  457. type: number
  458. description: Threshold size to choose between file-based cache and memory-based cach
  459. WorkspaceSettings:
  460. title: settings
  461. type: object
  462. properties:
  463. contact:
  464. $ref: "#/definitions/WorkspaceContact"
  465. charset:
  466. type: string
  467. description: Character set to use for encoding (such as UTF-8)
  468. numDecimals:
  469. type: number
  470. description: Maximum nuber of decimal places to use (GML and GeoJSON output)
  471. onlineResource:
  472. type: string
  473. description: Server admin URL
  474. verbose:
  475. type: boolean
  476. description: Return XML with newlines and indents
  477. verboseExceptions:
  478. type: boolean
  479. description: Return service exceptions with full Java stack traces
  480. localWorkspaceIncludesPrefix:
  481. type: boolean
  482. description: Show namespace prefix when using virtual service
  483. WorkspaceContact:
  484. type: object
  485. properties:
  486. id:
  487. type: string
  488. description: Contact ID