gwcglobal.yaml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoWebCache Global
  6. description: Global configuration for the GeoWebCache server
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. schemes:
  13. - http
  14. basePath: /geoserver/gwc/rest
  15. paths:
  16. /global:
  17. get:
  18. operationId: globalGet
  19. tags:
  20. - "GwcGlobal"
  21. summary: Retrieve the global server configuration
  22. description: Retrieves configuration details about the GeoWebCache server as a whole.
  23. produces:
  24. - application/xml
  25. - application/json
  26. responses:
  27. 200:
  28. description: OK
  29. schema:
  30. $ref: "#/definitions/Global"
  31. examples:
  32. application/xml: |
  33. <global>
  34. <serviceInformation>
  35. <title>GeoWebCache</title>
  36. <description>GeoWebCache is an advanced tile cache for WMS servers. It supports a large variety of protocols and
  37. formats, including WMS-C, WMTS, KML, Google Maps and Virtual Earth.</description>
  38. <keywords>
  39. <string>WFS</string>
  40. <string>WMS</string>
  41. <string>WMTS</string>
  42. <string>GEOWEBCACHE</string>
  43. </keywords>
  44. <serviceProvider>
  45. <providerName>John Smith inc.</providerName>
  46. <providerSite>http://www.example.com/</providerSite>
  47. <serviceContact>
  48. <individualName>John Smith</individualName>
  49. <positionName>Geospatial Expert</positionName>
  50. <addressType>Work</addressType>
  51. <addressStreet>1 Bumpy St.</addressStreet>
  52. <addressCity>Hobart</addressCity>
  53. <addressAdministrativeArea>TAS</addressAdministrativeArea>
  54. <addressPostalCode>7005</addressPostalCode>
  55. <addressCountry>Australia</addressCountry>
  56. <phoneNumber>+61 3 0000 0000</phoneNumber>
  57. <faxNumber>+61 3 0000 0001</faxNumber>
  58. <addressEmail>john.smith@example.com</addressEmail>
  59. </serviceContact>
  60. </serviceProvider>
  61. <fees>NONE</fees>
  62. <accessConstraints>NONE</accessConstraints>
  63. </serviceInformation>
  64. <runtimeStatsEnabled>true</runtimeStatsEnabled>
  65. <wmtsCiteCompliant>false</wmtsCiteCompliant>
  66. <backendTimeout>120</backendTimeout>
  67. <version>1.13.0</version>
  68. <identifier>/var/opt/gwc/config</identifier>
  69. <location>/var/opt/gwc/config/geowebcache.xml</location>
  70. </global>
  71. put:
  72. operationId: globalPut
  73. tags:
  74. - "GwcGlobal"
  75. summary: Modifies the global configuration.
  76. description: Update one or more global configuration values
  77. parameters:
  78. - name: body
  79. in: body
  80. description: The modified global configuration.
  81. required: true
  82. schema:
  83. $ref: "#/definitions/Global"
  84. consumes:
  85. - application/xml
  86. - application/json
  87. responses:
  88. 200:
  89. description: The configuration was successfully updated.
  90. 400:
  91. description: Cannot modify a read-only value.
  92. definitions:
  93. Global:
  94. title: global
  95. description: The global configuration
  96. type: object
  97. properties:
  98. serviceInformation:
  99. title: serviceInformation
  100. description: Service information such as you or your company's details that you want provided in capabilities documents.
  101. type: object
  102. properties:
  103. title:
  104. title: title
  105. description: The title of the server.
  106. type: string
  107. description:
  108. title: description
  109. description: The description of the server.
  110. type: string
  111. keywords:
  112. title: keywords
  113. description: List of keywords for the server
  114. type: array
  115. items:
  116. title: string
  117. description: A keyword
  118. type: string
  119. serviceProvider:
  120. title: serviceProvider
  121. description: Information about the entity which provides this GeoWebCache service.
  122. type: object
  123. properties:
  124. providerName:
  125. title: providerName
  126. description: The name of the entity providing the service.
  127. type: string
  128. providerSite:
  129. title: providerSite
  130. description: The website of the entity providing the service.
  131. type: string
  132. serviceContact:
  133. title: serviceContact
  134. description: Contact information for the entity providing the service.
  135. type: object
  136. properties:
  137. individualName:
  138. title: individualName
  139. description: The name of the contact.
  140. type: string
  141. positionName:
  142. title: positionName
  143. description: The position of the contact.
  144. type: string
  145. addressType:
  146. title: addressType
  147. description: The type of address, e.g. "Work" or "Home".
  148. type: string
  149. addressStreet:
  150. title: addressStreet
  151. description: The street portion of the address.
  152. type: string
  153. addressCity:
  154. title: addressCity
  155. description: The city portion of the address.
  156. type: string
  157. addressAdministrativeArea:
  158. title: addressAdministrativeArea
  159. description: The administrative area portion of the address.
  160. type: string
  161. addressPostalCode:
  162. title: addressPostalCode
  163. description: The postal code portion of the address.
  164. type: string
  165. addressCountry:
  166. title: addressCountry
  167. description: The country portion of the address.
  168. type: string
  169. phoneNumber:
  170. title: phoneNumber
  171. description: The phone number of the contact.
  172. type: string
  173. faxNumber:
  174. title: faxNumber
  175. description: The fax number of the contact.
  176. type: string
  177. addressEmail:
  178. title: addressEmail
  179. description: The email of the contact.
  180. type: string
  181. fees:
  182. title: fees
  183. description: Any fees associated with the server.
  184. type: string
  185. accessConstraints:
  186. title: accessConstraints
  187. description: Any access constraints associated with the server.
  188. type: string
  189. runtimeStatsEnabled:
  190. title: runtimeStatsEnabled
  191. description: Whether runtime statistics are being gathered. Runtime statistics run, by default, every three second and provide data about how many requests the system has been serving in the past 3, 15 and 60 seconds, as well as aggregate numbers.
  192. type: boolean
  193. wmtsCiteCompliant:
  194. title: wmtsCiteCompliant
  195. description: Whether the server is running in WMTS strict compliance mode.
  196. type: boolean
  197. backendTimeout:
  198. title: backendTimeout
  199. description: The number of seconds GWC will wait for a backend server to return something before closing the connection.
  200. type: integer
  201. version:
  202. title: version
  203. description: The GeoWebCache version. Read-only.
  204. type: string
  205. identifier:
  206. title: identifier
  207. description: The unique identifier for this global server configuration. Read-only.
  208. type: string
  209. location:
  210. title: location
  211. description: The location of this configuration. Read-only.
  212. type: string