gwcbounds.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoWebCache Bounds
  6. description: A RESTful interface through which get the bounds of a given layer based on srs.
  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. /bounds/{layer}/{srs}/{type}:
  17. get:
  18. produces:
  19. - text/plain
  20. operationId: boundsGet
  21. tags:
  22. - "GwcBounds"
  23. summary: Returns the bounds for a layer based on srs.
  24. description: Returns the bounds for a layer based on srs.
  25. parameters:
  26. - name: layer
  27. in: path
  28. required: true
  29. description: The name of the layer to update.
  30. type: string
  31. - name: srs
  32. in: path
  33. required: true
  34. description: The srs projection used against the layer to find the bounds such as EPSG:4326
  35. type: string
  36. - name: type
  37. in: path
  38. description: Accepts java as an extension.
  39. required: true
  40. type: string
  41. enum: [java]
  42. responses:
  43. 200:
  44. description: OK
  45. examples:
  46. text/plain: |
  47. {{0, 0, 1, 0, 0}, {0, 0, 3, 1, 1}, {0, 0, 7, 3, 2}, {0, 0, 15, 7, 3}, {0, 0, 31, 15, 4}, {0, 0, 63, 30, 5}, {0, 0, 127, 61, 6}, {0, 0, 255, 123, 7}, {0, 0, 511, 246, 8}, {0, 0, 1023, 493, 9}, {0, 0, 2047, 987, 10}, {0, 0, 4095, 1975, 11}, {0, 0, 8191, 3950, 12}, {0, 0, 16383, 7900, 13}, {0, 0, 32767, 15801, 14}, {0, 0, 65535, 31602, 15}, {0, 0, 131071, 63205, 16}, {0, 0, 262143, 126411, 17}, {0, 1, 524287, 252822, 18}, {0, 3, 1048575, 505645, 19}, {0, 6, 2097151, 1011291, 20}, {0, 12, 4194303, 2022582, 21}}