123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517 |
- ---
- swagger: '2.0'
- info:
- version: 1.0.0
- title: GeoServer Settings
- description: The Settings area shows global configuration for the server
- contact:
- name: GeoServer
- email: 'geoserver-users@osgeo.org'
- url: 'https://geoserver.org/comm/'
- host: localhost:8080
- basePath: /geoserver/rest
- paths:
- /settings:
- get:
- operationId: getSettings
- tags:
- - "Settings"
- summary: Get a list of all global settings
- 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).
- produces:
- - application/xml
- - application/json
- - text/html
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Global"
- examples:
- application/xml: |
- <global>
- <settings>
- <id>SettingsInfoImpl-68f6c583:154ca420c47:-8000</id>
- <contact>
- <addressCity>Alexandria</addressCity>
- <addressCountry>Egypt</addressCountry>
- <addressType>Work</addressType>
- <contactEmail>claudius.ptolomaeus@gmail.com</contactEmail>
- <contactOrganization>The Ancient Geographers</contactOrganization>
- <contactPerson>Claudius Ptolomaeus</contactPerson>
- <contactPosition>Chief Geographer</contactPosition>
- </contact>
- <charset>UTF-8</charset>
- <numDecimals>8</numDecimals>
- <onlineResource>http://geoserver.org</onlineResource>
- <verbose>false</verbose>
- <verboseExceptions>false</verboseExceptions>
- <localWorkspaceIncludesPrefix>false</localWorkspaceIncludesPrefix>
- </settings>
- <jai>
- <allowInterpolation>false</allowInterpolation>
- <recycling>false</recycling>
- <tilePriority>5</tilePriority>
- <tileThreads>7</tileThreads>
- <memoryCapacity>0.5</memoryCapacity>
- <memoryThreshold>0.75</memoryThreshold>
- <imageIOCache>false</imageIOCache>
- <pngAcceleration>true</pngAcceleration>
- <jpegAcceleration>true</jpegAcceleration>
- <allowNativeMosaic>false</allowNativeMosaic>
- <allowNativeWarp>false</allowNativeWarp>
- </jai>
- <coverageAccess>
- <maxPoolSize>10</maxPoolSize>
- <corePoolSize>5</corePoolSize>
- <keepAliveTime>30000</keepAliveTime>
- <queueType>UNBOUNDED</queueType>
- <imageIOCacheThreshold>10240</imageIOCacheThreshold>
- </coverageAccess>
- <updateSequence>180</updateSequence>
- <featureTypeCacheSize>0</featureTypeCacheSize>
- <globalServices>true</globalServices>
- <xmlPostRequestLogBufferSize>1024</xmlPostRequestLogBufferSize>
- </global>
-
- application/json: |
- {
- "global": {
- "settings": {
- "id": "SettingsInfoImpl-68f6c583:154ca420c47:-8000",
- "contact": {
- "addressCity": "Alexandria",
- "addressCountry": "Egypt",
- "addressType": "Work",
- "contactEmail": "claudius.ptolomaeus@gmail.com",
- "contactOrganization": "The Ancient Geographers",
- "contactPerson": "Claudius Ptolomaeus",
- "contactPosition": "Chief Geographer"
- },
- "charset": "UTF-8",
- "numDecimals": 8,
- "onlineResource": "http://geoserver.org",
- "verbose": false,
- "verboseExceptions": false,
- "localWorkspaceIncludesPrefix": false
- },
- "jai": {
- "allowInterpolation": false,
- "recycling": false,
- "tilePriority": 5,
- "tileThreads": 7,
- "memoryCapacity": 0.5,
- "memoryThreshold": 0.75,
- "imageIOCache": false,
- "pngAcceleration": true,
- "jpegAcceleration": true,
- "allowNativeMosaic": false,
- "allowNativeWarp": false
- },
- "coverageAccess": {
- "maxPoolSize": 10,
- "corePoolSize": 5,
- "keepAliveTime": 30000,
- "queueType": "UNBOUNDED",
- "imageIOCacheThreshold": 10240
- },
- "updateSequence": 180,
- "featureTypeCacheSize": 0,
- "globalServices": true,
- "xmlPostRequestLogBufferSize": 1024
- }
- }
-
- post:
- operationId: postSettings
- tags:
- - "Settings"
- description: Invalid. Use PUT to update settings.
- responses:
- 405:
- description: Method Not Allowed
- put:
- operationId: putSettings*
- tags:
- - "Settings"
- summary: Update settings
- description: Updates global settings on the server.
- parameters:
- - name: settingsBody
- description: The settings information to upload.
- in: body
- required: true
- schema:
- $ref: "#/definitions/Global"
- consumes:
- - application/xml
- - application/json
- responses:
- 200:
- description: OK
- delete:
- operationId: deleteSettings
- tags:
- - "Settings"
- description: Invalid. Use PUT to update settings.
- responses:
- 405:
- description: Method Not Allowed
- /settings/contact:
- get:
- operationId: getContactSettings
- tags:
- - "Settings"
- summary: Get a list of all global contact settings
- 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).
- produces:
- - application/xml
- - application/json
- - text/html
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Contact"
- examples:
- application/xml: |
- <contact>
- <addressCity>Alexandria</addressCity>
- <addressCountry>Egypt</addressCountry>
- <addressType>Work</addressType>
- <contactEmail>claudius.ptolomaeus@gmail.com</contactEmail>
- <contactOrganization>The Ancient Geographers</contactOrganization>
- <contactPerson>Claudius Ptolomaeus</contactPerson>
- <contactPosition>Chief Geographer</contactPosition>
- </contact>
-
- application/json: |
- {
- "contact": {
- "addressCity": "Alexandria",
- "addressCountry": "Egypt",
- "addressType": "Work",
- "contactEmail": "claudius.ptolomaeus@gmail.com",
- "contactOrganization": "The Ancient Geographers",
- "contactPerson": "Claudius Ptolomaeus",
- "contactPosition": "Chief Geographer"
- }
- }
-
- post:
- operationId: postContactSettings
- tags:
- - "Settings"
- description: Invalid. Use PUT to update contact settings.
- responses:
- 405:
- description: Method Not Allowed
- put:
- operationId: putContactSettings
- tags:
- - "Settings"
- summary: Update contact settings
- description: Updates global contact settings on the server.
- parameters:
- - name: settingscontactBody
- description: The contact settings information to upload.
- in: body
- required: true
- schema:
- $ref: "#/definitions/Contact"
- consumes:
- - application/xml
- - application/json
- responses:
- 200:
- description: OK
- delete:
- operationId: deleteContactSettings
- tags:
- - "Settings"
- description: Invalid. Use PUT to update contact settings.
- responses:
- 405:
- description: Method Not Allowed
- /workspaces/{workspace}/settings:
- parameters:
- - name: workspace
- in: path
- required: true
- type: string
- description: The workspace name
- get:
- operationId: getWorkspaceSettings
- tags:
- - "Settings"
- summary: Get a list of all workspace-specific settings
- 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).
- produces:
- - application/xml
- - application/json
- - text/html
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/WorkspaceSettings"
- examples:
- application/xml: |
- <settings>
- <contact>
- <id>contact</id>
- </contact>
- <charset>UTF-8</charset>
- <numDecimals>4</numDecimals>
- <verbose>false</verbose>
- <verboseExceptions>false</verboseExceptions>
- <localWorkspaceIncludesPrefix>false</localWorkspaceIncludesPrefix>
- </settings>
-
- application/json: |
- {
- "settings": {
- "contact": {
- "id": "contact"
- },
- "charset": "UTF-8",
- "numDecimals": 4,
- "verbose": false,
- "verboseExceptions": false,
- "localWorkspaceIncludesPrefix": false
- }
- }
-
- post:
- operationId: postWorkspaceSettings
- tags:
- - "Settings"
- summary: Create workspace-specific settings
- description: Create new workspace-specific settings on the server.
- parameters:
- - name: settingsBody
- description: The settings information to upload.
- in: body
- required: true
- schema:
- $ref: "#/definitions/WorkspaceSettings"
- consumes:
- - application/xml
- - application/json
- responses:
- 201:
- description: Created
- 500:
- description: "Internal Server Error: Settings already exist for workspace"
- put:
- operationId: putWorkspaceSettings
- tags:
- - "Settings"
- summary: Update workspace-specific settings
- description: Updates workspace-specific settings on the server.
- parameters:
- - name: settingsBody
- description: The settings information to upload.
- in: body
- required: true
- schema:
- $ref: "#/definitions/WorkspaceSettings"
- consumes:
- - application/xml
- - application/json
- responses:
- 200:
- description: OK
- delete:
- operationId: deleteWorkspaceSettings
- tags:
- - "Settings"
- description: Delete the settings for this workspace.
- responses:
- 200:
- description: OK
- definitions:
- Global:
- type: object
- xml:
- name: global
- properties:
- settings:
- $ref: "#/definitions/Settings"
- jai:
- $ref: "#/definitions/JAI"
- coverageAccess:
- $ref: "#/definitions/CoverageAccess"
- updateSequence:
- type: number
- description: Number of times the server configuration has been modified
- featureTypeCacheSize:
- type: number
- description: Maximum number of datastore connections and schemas that can be kept in memory
- globalServices:
- type: boolean
- description: Allow access to both global services and virtual services
- xmlPostRequestLogBufferSize:
- type: number
- description: With more verbose logging levels, sets the size of the buffer GeoServer will use to log the body of POST requests
- Settings:
- type: object
- xml:
- name: settings
- properties:
- id:
- type: string
- description: For internal use only. Do not modify.
- contact:
- $ref: "#/definitions/Contact"
- charset:
- type: string
- description: Character set to use for encoding (such as UTF-8)
- numDecimals:
- type: number
- description: Maximum nuber of decimal places to use (GML and GeoJSON output)
- onlineResource:
- type: string
- description: Server admin URL
- verbose:
- type: boolean
- description: Return XML with newlines and indents
- verboseExceptions:
- type: boolean
- description: Return service exceptions with full Java stack traces
- localWorkspaceIncludesPrefix:
- type: boolean
- description: Show namespace prefix when using virtual service
- Contact:
- type: object
- xml:
- name: contact
- properties:
- addressCity:
- type: string
- description: Server admin city
- addressCountry:
- type: string
- description: Server admin country
- addressType:
- type: string
- description: Type of address
- contactEmail:
- type: string
- description: Server admin email
- contactOrganization:
- type: string
- description: Server admin organization
- contactPerson:
- type: string
- description: Server admin point of contact
- contactPosition:
- type: string
- description: Server admin point of contact job title
- JAI:
- type: object
- properties:
- allowInterpolation:
- type: boolean
- description: No longer used
- recycling:
- type: boolean
- description: Tile recycling
- tilePriority:
- type: number
- description: Tile thread priority
- tileThreads:
- type: number
- description: Tile threads
- memoryCapacity:
- type: number
- description: Memory capacity
- memoryThreshold:
- type: number
- description: Memory threshold
- imageIOCache:
- type: boolean
- description: Enables Image IO cache
- pngAcceleration:
- type: boolean
- description: Enable JAI PNG native acceleration
- jpegAcceleration:
- type: boolean
- description: Enable JAI JPEG native acceleration
- allowNativeMosaic:
- type: boolean
- description: Enable JAI mosaic native acceleration
- allowNativeWarp:
- type: boolean
- description: Enable JAI native warp acceleration
- CoverageAccess:
- type: object
- properties:
- maxPoolSize:
- type: number
- description: Maximum number of threads that the Java ThreadPoolExecutor will create
- corePoolSize:
- type: number
- description: Number of threads that the Java ThreadPoolExecutor will create
- keepAlilveTime:
- type: number
- description: Timeout for threads to be terminated if they are idle and more than the core pool number exist.
- queueType:
- type: string
- description: Type of Blocking Queue to managed submitted tasks. Can be either UNBOUNDED or DIRECT.
- imageIOCacheThreshold:
- type: number
- description: Threshold size to choose between file-based cache and memory-based cach
- WorkspaceSettings:
- title: settings
- type: object
- properties:
- contact:
- $ref: "#/definitions/WorkspaceContact"
- charset:
- type: string
- description: Character set to use for encoding (such as UTF-8)
- numDecimals:
- type: number
- description: Maximum nuber of decimal places to use (GML and GeoJSON output)
- onlineResource:
- type: string
- description: Server admin URL
- verbose:
- type: boolean
- description: Return XML with newlines and indents
- verboseExceptions:
- type: boolean
- description: Return service exceptions with full Java stack traces
- localWorkspaceIncludesPrefix:
- type: boolean
- description: Show namespace prefix when using virtual service
- WorkspaceContact:
- type: object
- properties:
- id:
- type: string
- description: Contact ID
|