gwcseed.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoWebCache Seeding and Truncating
  6. description: A layer is a published resource (feature type or coverage).
  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. /seed.json:
  17. get:
  18. operationId: seedGet
  19. tags:
  20. - "GwcSeed"
  21. summary: Query's currently running GWC task
  22. description: Query's and returns a json array of the status for all currently running task. Requires json extension in the request. The array contains a set of long in the following order:[tiles processed, total number of tiles to process, number of remaining tiles, Task ID, Task status].
  23. The returned task status will be one of -1 = ABORTED, 0 = PENDING, 1 = RUNNING, 2 = DONE
  24. produces:
  25. - application/json
  26. responses:
  27. 200:
  28. description: OK
  29. examples:
  30. application/json: |
  31. {"long-array-array":[
  32. [364832,2761733810,998564,16,1],
  33. [373472,2761733810,975448,17,1],
  34. [363760,2761733810,1001509,18,1]
  35. ]}
  36. /seed/{layer}.{format}:
  37. get:
  38. operationId: layerSeedGet
  39. tags:
  40. - "GwcSeed"
  41. summary: Query's the currently running GWC task for a given layer
  42. description: Returns HTML of the GeoWebCache Seed ui page or a json array of the status for currently running task of a given layer if using json extension. The json array contains a set of long in the following order:[tiles processed, total number of tiles to process, number of remaining tiles, Task ID, Task status]
  43. produces:
  44. - application/json
  45. - application/html
  46. parameters:
  47. - name: layer
  48. in: path
  49. required: true
  50. description: The name of the layer to query GWC task.
  51. type: string
  52. - name: format
  53. in: path
  54. required: true
  55. description: Based on format, the request will return an application/html or application/json response.
  56. type: string
  57. responses:
  58. 200:
  59. description: OK
  60. examples:
  61. application/json: |
  62. {"long-array-array":[
  63. [364832,2761733810,998564,16,1],
  64. [373472,2761733810,975448,17,1],
  65. ]}
  66. text/html: |
  67. <html>
  68. <title>GWC Seed Form</title>
  69. <body> {contents of GeoWebCache Seed Form} <body>
  70. </html>
  71. 400:
  72. description: Bad Request
  73. post:
  74. operationId: layerSeedPost
  75. tags:
  76. - "GwcSeed"
  77. summary: Issue a seed, reseed or truncate task request
  78. description: Executes an issue to seed, reseed or truncate task request for a layer and returns HTML UI page of running GWC tasks and tasks to execute.
  79. parameters:
  80. - name: layer
  81. in: path
  82. required: true
  83. description: The name of the layer to query GWC task.
  84. type: string
  85. - name: requestBody
  86. in: body
  87. description: The updated layer definition.
  88. schema:
  89. $ref: "#/definitions/seedRequest"
  90. consumes:
  91. - application/json
  92. - application/xml
  93. responses:
  94. 201:
  95. description: Successfully created seed, reseed, or truncate request
  96. 400:
  97. description: Bad Request
  98. definitions:
  99. seedRequest:
  100. title: seedRequest
  101. type: object
  102. properties:
  103. name:
  104. type: string
  105. description: name of the layer to seed, reseed, or truncate.
  106. bounds:
  107. type: object
  108. description: A set of coordinates describing the bounds of the seed layer.
  109. properties:
  110. 'coords':
  111. type: object
  112. items:
  113. properties:
  114. 'double':
  115. type: array
  116. items:
  117. type: number
  118. gridSetId:
  119. type: string
  120. description: The projection used for the layer.
  121. zoomStart:
  122. type: integer
  123. description: The zoom level to start seeding.
  124. zoomStop:
  125. type: integer
  126. description: The zoom level to stop seeding.
  127. type:
  128. type: string
  129. enum: [seed, reseed, truncate]
  130. description: Type can be seed (add tiles), reseed (replace tiles), or truncate (remove tiles).
  131. threadCount:
  132. type: integer
  133. description: Number of seeding threads to run in parallel. If type is truncate only one thread will be used regardless of this parameter.
  134. parameters:
  135. type: object
  136. description: The filter parameters used for the requested layer
  137. properties:
  138. 'entry':
  139. type: object
  140. description: A set of strings used to describe what filters to use
  141. properties:
  142. 'string':
  143. type: string