wmslayers.yaml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer WMS Store Layers
  6. description: A WMS store is a store whose source is another WMS. Also known as "Cascading WMS" or "External WMS". A WMS store layer is a layer from this store.
  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. /workspaces/{workspace}/wmslayers:
  15. get:
  16. operationId: getWMSStoreLayers
  17. tags:
  18. - "WMSLayers"
  19. description: Retrieves the WMS layers available on the server. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/workspaces/{workspace}/wmslayers" for XML).
  20. parameters:
  21. - name: workspace
  22. in: path
  23. description: Name of the workspace
  24. required: true
  25. type: string
  26. - name: list
  27. in: query
  28. description: Set "list=available" to see all possible layers in the store, not just ones currently published
  29. type: string
  30. default: configured
  31. enum:
  32. - available
  33. - configured
  34. produces:
  35. - application/xml
  36. - application/json
  37. - text/html
  38. responses:
  39. 200:
  40. description: OK
  41. schema:
  42. $ref: "#/definitions/WMSStoreLayersList"
  43. examples:
  44. application/xml: |
  45. <wmsLayers>
  46. <wmsLayer>
  47. <name>dem</name>
  48. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs/wmslayers/dem.xml" type="application/xml"/>
  49. </wmsLayer>
  50. <wmsLayer>
  51. <name>states</name>
  52. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs/wmslayers/states.xml" type="application/xml"/>
  53. </wmsLayer>
  54. </wmsLayers>
  55. application/json: |
  56. {"wmsLayers":{"wmsLayer":[{"name":"dem","href":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/cite\/wmsstores\/altgs\/wmslayers\/dem.json"},{"name":"states","href":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/cite\/wmsstores\/altgs\/wmslayers\/states.json"}]}}
  57. application/xml (list=available): |
  58. <list>
  59. <wmsLayerName>ne:basemap</wmsLayerName>
  60. <wmsLayerName>ne:ne1</wmsLayerName>
  61. <wmsLayerName>ne:boundary_lines_land</wmsLayerName>
  62. <wmsLayerName>ne:states_provinces_lines</wmsLayerName>
  63. <wmsLayerName>ne:populated_places</wmsLayerName>
  64. <wmsLayerName>opengeo:countries</wmsLayerName>
  65. <wmsLayerName>usgs:dem</wmsLayerName>
  66. <wmsLayerName>ne:ocean</wmsLayerName>
  67. <wmsLayerName>ne:roads</wmsLayerName>
  68. <wmsLayerName>usa:states</wmsLayerName>
  69. <wmsLayerName>ne:states_provinces_shp</wmsLayerName>
  70. <wmsLayerName>ne:urban_areas</wmsLayerName>
  71. </list>
  72. application/json (list=available): |
  73. {"list":{"string":["ne:basemap","ne:ne1","ne:boundary_lines_land","ne:states_provinces_lines","ne:populated_places","opengeo:countries","usgs:dem","ne:ocean","ne:roads","usa:states","ne:states_provinces_shp","ne:urban_areas"]}}
  74. post:
  75. operationId: postWMSStoreLayers
  76. tags:
  77. - "WMSLayers"
  78. description: Publishes a new WMS store layer.
  79. parameters:
  80. - name: workspace
  81. in: path
  82. description: Name of the workspace
  83. required: true
  84. type: string
  85. - name: WMSStoreLayerBody
  86. in: body
  87. description: Body of the WMS store layer
  88. required: true
  89. schema:
  90. $ref: "#/definitions/WMSStoreLayerInfo"
  91. consumes:
  92. - application/xml
  93. - application/json
  94. responses:
  95. 201:
  96. description: Created
  97. headers:
  98. Location:
  99. description: Location of the newly created layer.
  100. type: string
  101. put:
  102. operationId: putWMSStoreLayers
  103. tags:
  104. - "WMSLayers"
  105. description: Invalid. Use POST for adding a new layer, or PUT on an individual layer to edit it.
  106. responses:
  107. 405:
  108. description: Method Not Allowed
  109. delete:
  110. operationId: deleteWMSStoreLayers
  111. tags:
  112. - "WMSLayers"
  113. description: Invalid. Can only delete an individual layer.
  114. responses:
  115. 405:
  116. description: Method Not Allowed
  117. /workspaces/{workspace}/wmslayers/{wmslayer}:
  118. get:
  119. operationId: getWMSStoreLayer
  120. tags:
  121. - "WMSLayers"
  122. description: Retrieves an individual WMS layer. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/workspaces/{workspace}/wmslayers/{wmslayer}.xml" for XML).
  123. produces:
  124. - application/xml
  125. - application/json
  126. - text/html
  127. parameters:
  128. - name: workspace
  129. in: path
  130. description: Name of the workspace
  131. required: true
  132. type: string
  133. - name: wmslayer
  134. in: path
  135. description: Name of the layer
  136. required: true
  137. type: string
  138. - name: quietOnNotFound
  139. in: query
  140. description: When set to "true", will not log an exception when the style is not present. The 404 status code will still be returned. Allowable values are "true" or "false" (default).
  141. type: boolean
  142. required: false
  143. responses:
  144. 200:
  145. description: OK
  146. schema:
  147. $ref: "#/definitions/WMSStoreLayerInfo"
  148. examples:
  149. application/xml: |
  150. <wmsLayer>
  151. <name>dem</name>
  152. <nativeName>usgs:dem</nativeName>
  153. <namespace>
  154. <name>cite</name>
  155. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/cite.xml" type="application/xml"/>
  156. </namespace>
  157. <title>Digital elevation model</title>
  158. <description>USGS GTOPO30 digital elevation model</description>
  159. <abstract>USGS GTOPO30 digital elevation model</abstract>
  160. <keywords>
  161. <string>WCS</string>
  162. <string>GeoTIFF</string>
  163. <string>W100N40</string>
  164. </keywords>
  165. <nativeCRS>GEOGCS[&quot;WGS 84&quot;, &#xd;
  166. DATUM[&quot;World Geodetic System 1984&quot;, &#xd;
  167. SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], &#xd;
  168. AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], &#xd;
  169. PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], &#xd;
  170. UNIT[&quot;degree&quot;, 0.017453292519943295], &#xd;
  171. AXIS[&quot;Geodetic longitude&quot;, EAST], &#xd;
  172. AXIS[&quot;Geodetic latitude&quot;, NORTH], &#xd;
  173. AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</nativeCRS>
  174. <srs>EPSG:4326</srs>
  175. <nativeBoundingBox>
  176. <minx>-100.0</minx>
  177. <maxx>-60.000000000015994</maxx>
  178. <miny>-9.999999999980012</miny>
  179. <maxy>39.99999999999999</maxy>
  180. <crs>EPSG:4326</crs>
  181. </nativeBoundingBox>
  182. <latLonBoundingBox>
  183. <minx>-100.0</minx>
  184. <maxx>-60.000000000015994</maxx>
  185. <miny>-9.999999999980012</miny>
  186. <maxy>39.99999999999999</maxy>
  187. <crs>EPSG:4326</crs>
  188. </latLonBoundingBox>
  189. <projectionPolicy>FORCE_DECLARED</projectionPolicy>
  190. <enabled>true</enabled>
  191. <metadata>
  192. <entry key="cachingEnabled">false</entry>
  193. </metadata>
  194. <store class="wmsStore">
  195. <name>cite:altgs</name>
  196. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs.xml" type="application/xml"/>
  197. </store>
  198. <forcedRemoteStyle>dem_style</forcedRemoteStyle>
  199. <preferredFormat>image/png</preferredFormat>
  200. <selectedRemoteFormats>
  201. <string>image/png</string>
  202. <string>image/jpeg</string>
  203. <string>image/tiff</string>
  204. <string>image/gif</string>
  205. <string>image/geotiff</string>
  206. <string>image/png8</string>
  207. <string>image/tiff8</string>
  208. <string>image/geotiff8</string>
  209. </selectedRemoteFormats>
  210. <selectedRemoteStyles>
  211. <string>dem_style</string>
  212. <string>another_dem_style</string>
  213. </selectedRemoteStyles>
  214. <minScale>1000000.0</minScale>
  215. <maxScale>1.0E7</maxScale>
  216. <metadataBBoxRespected>false</metadataBBoxRespected>
  217. <allAvailableRemoteStyles>
  218. <style>
  219. <name>another_dem_style</name>
  220. <format>sld</format>
  221. <languageVersion>
  222. <version>1.0.0</version>
  223. </languageVersion>
  224. <legend>
  225. <width>20</width>
  226. <height>20</height>
  227. <format>image/png</format>
  228. <onlineResource>https://remote.wms.server/geoserver/wms?request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=topp%3Astates&amp;style=another_dem_style</onlineResource>
  229. </legend>
  230. <metadata>
  231. <entry key="isRemote">true</entry>
  232. </metadata>
  233. </style>
  234. <style>
  235. <name>dem_style</name>
  236. <format>sld</format>
  237. <languageVersion>
  238. <version>1.0.0</version>
  239. </languageVersion>
  240. <legend>
  241. <width>20</width>
  242. <height>20</height>
  243. <format>image/png</format>
  244. <onlineResource>https://remote.wms.server/geoserver/wms?request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=topp%3Astates&amp;style=dem_style</onlineResource>
  245. </legend>
  246. <metadata>
  247. <entry key="isRemote">true</entry>
  248. </metadata>
  249. </style>
  250. </allAvailableRemoteStyles>
  251. </wmsLayer>
  252. application/json: |
  253. {"wmsLayer":{"name":"dem","nativeName":"usgs:dem","namespace":{"name":"cite","href":"http://localhost:8080/geoserver/rest/namespaces/cite.json"},"title":"Digital elevation model","description":"USGS GTOPO30 digital elevation model","abstract":"USGS GTOPO30 digital elevation model","keywords":{"string":["WCS","GeoTIFF","W100N40"]},"nativeCRS":"GEOGCS[\"WGS 84\", \r\n DATUM[\"World Geodetic System 1984\", \r\n SPHEROID[\"WGS 84\", 6378137.0, 298.257223563, AUTHORITY[\"EPSG\",\"7030\"]], \r\n AUTHORITY[\"EPSG\",\"6326\"]], \r\n PRIMEM[\"Greenwich\", 0.0, AUTHORITY[\"EPSG\",\"8901\"]], \r\n UNIT[\"degree\", 0.017453292519943295], \r\n AXIS[\"Geodetic longitude\", EAST], \r\n AXIS[\"Geodetic latitude\", NORTH], \r\n AUTHORITY[\"EPSG\",\"4326\"]]","srs":"EPSG:4326","nativeBoundingBox":{"minx":-100,"maxx":-60,"miny":-10,"maxy":40,"crs":"EPSG:4326"},"latLonBoundingBox":{"minx":-100,"maxx":-60,"miny":-10,"maxy":40,"crs":"EPSG:4326"},"projectionPolicy":"FORCE_DECLARED","enabled":true,"metadata":{"entry":{"@key":"cachingEnabled","$":"false"}},"store":{"@class":"wmsStore","name":"cite:altgs","href":"http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs.json"},"forcedRemoteStyle":"polygon","preferredFormat":"image/png","selectedRemoteFormats":{"string":["image/png","image/png; mode=8bit","image/vnd.jpeg-png","image/jpeg","image/tiff","image/gif","image/geotiff","image/gif;subtype=animated","image/png8","image/tiff8","image/geotiff8"]},"selectedRemoteStyles":{"string":["pophatch","population-region","polygon","population"]},"minScale":1000000,"maxScale":1.0E7,"metadataBBoxRespected":false,"allAvailableRemoteStyles":{"style":[{"name":"population-region","format":"sld","languageVersion":{"version":"1.0.0"},"legend":{"width":20,"height":20,"format":"image/png","onlineResource":"https://demo.geo-solutions.it:443/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=topp%3Astates&style=population-region"},"metadata":{"entry":{"@key":"isRemote","$":"true"}}},{"name":"polygon","format":"sld","languageVersion":{"version":"1.0.0"},"legend":{"width":20,"height":20,"format":"image/png","onlineResource":"https://demo.geo-solutions.it:443/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=topp%3Astates&style=polygon"},"metadata":{"entry":{"@key":"isRemote","$":"true"}}},{"name":"population","format":"sld","languageVersion":{"version":"1.0.0"},"legend":{"width":20,"height":20,"format":"image/png","onlineResource":"https://demo.geo-solutions.it:443/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=topp%3Astates"},"metadata":{"entry":{"@key":"isRemote","$":"true"}}},{"name":"pophatch","format":"sld","languageVersion":{"version":"1.0.0"},"legend":{"width":20,"height":20,"format":"image/png","onlineResource":"https://demo.geo-solutions.it:443/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=topp%3Astates&style=pophatch"},"metadata":{"entry":{"@key":"isRemote","$":"true"}}}]}}}
  254. post:
  255. operationId: postWMSStoreLayer
  256. tags:
  257. - "WMSLayers"
  258. description: Invalid. Use PUT to edit a layer, or POST on the /wmslayers endpoint to add a new layer.
  259. responses:
  260. 405:
  261. description: Method Not Allowed
  262. put:
  263. operationId: putWMSStoreLayer
  264. tags:
  265. - "WMSLayers"
  266. description: Edits an existing WMS store layer.
  267. parameters:
  268. - name: workspace
  269. in: path
  270. description: Name of the workspace
  271. required: true
  272. type: string
  273. - name: wmslayer
  274. in: path
  275. description: Name of the layer to be edited
  276. required: true
  277. type: string
  278. - name: WMSStoreLayerBody
  279. in: body
  280. description: Body of the WMS store layer
  281. required: true
  282. schema:
  283. $ref: "#/definitions/WMSStoreLayerInfo"
  284. - name: calculate
  285. in: query
  286. description: Specifies whether to recalculate any bounding boxes for a wms layer. Some properties are automatically recalculated when necessary. In particular, the native bounding box is recalculated when the projection or projection policy are changed, and the lat/lon bounding box is recalculated when the native bounding box is recalculated, or when a new native bounding box is explicitly provided in the request. (The native and lat/lon bounding boxes are not automatically recalculated when they are explicitly included in the request.) In addition, the client may explicitly request a fixed set of fields to calculate, by including a comma-separated list of their names in the recalculate parameter. The empty parameter 'recalculate=' is useful avoid slow recalculation when operating against large datasets as 'recalculate=' avoids calculating any fields, regardless of any changes to projection, projection policy, etc. The nativebbox parameter 'recalculate=nativebbox' is used recalculates the native bounding box, while avoiding recalculating the lat/lon bounding box. Recalculate parameters can be used in together - 'recalculate=nativebbox,latlonbbox' can be used after a bulk import to to recalculates both the native bounding box and the lat/lon bounding box.
  287. required: false
  288. type: array
  289. collectionFormat: csv
  290. minItems: 0
  291. maxItems: 2
  292. items:
  293. type: string
  294. enum: [nativebbox,latlonbbox]
  295. consumes:
  296. - application/xml
  297. - application/json
  298. responses:
  299. 201:
  300. description: Created
  301. headers:
  302. Location:
  303. description: Location of the newly created layer.
  304. type: string
  305. delete:
  306. operationId: deleteWMSStoreLayer
  307. tags:
  308. - "WMSLayers"
  309. description: Deletes a layer from the server.
  310. parameters:
  311. - name: workspace
  312. in: path
  313. description: Name of the workspace
  314. required: true
  315. type: string
  316. - name: wmslayer
  317. in: path
  318. description: Name of the layer to be deleted
  319. required: true
  320. type: string
  321. - name: recurse
  322. in: query
  323. description: Recursively deletes all layers referenced by the specified wmslayer. Allowed values for this parameter are true or false. The default value is false. A request with 'recurse=false' will fail if any layers reference the wmslayer.
  324. required: false
  325. type: boolean
  326. default: false
  327. responses:
  328. 200:
  329. description: OK
  330. /workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers:
  331. get:
  332. operationId: getWMSStoreStoreLayers
  333. tags:
  334. - "WMSLayers"
  335. description: Retrieves the WMS store layers available in the given store. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers.xml" for XML).
  336. parameters:
  337. - name: workspace
  338. in: path
  339. description: Name of the workspace
  340. required: true
  341. type: string
  342. - name: wmsstore
  343. in: path
  344. description: Name of the store
  345. required: true
  346. type: string
  347. - name: list
  348. in: query
  349. description: Set "list=available" to see all possible layers in the store, not just ones currently published
  350. default: configured
  351. enum:
  352. - available
  353. - configured
  354. type: string
  355. produces:
  356. - application/xml
  357. - application/json
  358. - text/html
  359. responses:
  360. 200:
  361. description: OK
  362. schema:
  363. $ref: "#/definitions/WMSStoreLayersList"
  364. examples:
  365. application/xml: |
  366. <wmsLayers>
  367. <wmsLayer>
  368. <name>dem</name>
  369. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs/wmslayers/dem.xml" type="application/xml"/>
  370. </wmsLayer>
  371. <wmsLayer>
  372. <name>states</name>
  373. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs/wmslayers/states.xml" type="application/xml"/>
  374. </wmsLayer>
  375. </wmsLayers>
  376. application/json: |
  377. {"wmsLayers":{"wmsLayer":[{"name":"dem","href":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/cite\/wmsstores\/altgs\/wmslayers\/dem.json"},{"name":"states","href":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/cite\/wmsstores\/altgs\/wmslayers\/states.json"}]}}
  378. application/xml (list=available): |
  379. <list>
  380. <wmsLayerName>ne:basemap</wmsLayerName>
  381. <wmsLayerName>ne:ne1</wmsLayerName>
  382. <wmsLayerName>ne:boundary_lines_land</wmsLayerName>
  383. <wmsLayerName>ne:states_provinces_lines</wmsLayerName>
  384. <wmsLayerName>ne:populated_places</wmsLayerName>
  385. <wmsLayerName>opengeo:countries</wmsLayerName>
  386. <wmsLayerName>usgs:dem</wmsLayerName>
  387. <wmsLayerName>ne:ocean</wmsLayerName>
  388. <wmsLayerName>ne:roads</wmsLayerName>
  389. <wmsLayerName>usa:states</wmsLayerName>
  390. <wmsLayerName>ne:states_provinces_shp</wmsLayerName>
  391. <wmsLayerName>ne:urban_areas</wmsLayerName>
  392. </list>
  393. application/json (list=available): |
  394. {"list":{"string":["ne:basemap","ne:ne1","ne:boundary_lines_land","ne:states_provinces_lines","ne:populated_places","opengeo:countries","usgs:dem","ne:ocean","ne:roads","usa:states","ne:states_provinces_shp","ne:urban_areas"]}}
  395. post:
  396. operationId: postWMSStoreStoreLayers
  397. tags:
  398. - "WMSLayers"
  399. description: Publishes a new WMS store layer in the given store.
  400. parameters:
  401. - name: workspace
  402. in: path
  403. description: Name of the workspace
  404. required: true
  405. type: string
  406. - name: wmsstore
  407. in: path
  408. description: Name of the data store
  409. required: true
  410. type: string
  411. - name: WMSStoreLayerBody
  412. in: body
  413. description: Body of the WMS store layer
  414. required: true
  415. schema:
  416. $ref: "#/definitions/WMSStoreLayerInfo"
  417. consumes:
  418. - application/xml
  419. - application/json
  420. responses:
  421. 201:
  422. description: Created
  423. headers:
  424. Location:
  425. description: Location of the newly created layer
  426. type: string
  427. put:
  428. operationId: putWMSStoreStoreLayers
  429. tags:
  430. - "WMSLayers"
  431. description: Invalid. Use POST for adding a new layer, or PUT on an individual layer to edit it.
  432. responses:
  433. 405:
  434. description: Method Not Allowed
  435. delete:
  436. operationId: deleteWMSStoreStoreLayers
  437. tags:
  438. - "WMSLayers"
  439. description: Invalid. Can only delete an individual layer.
  440. responses:
  441. 405:
  442. description: Method Not Allowed
  443. /workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers/{wmslayer}:
  444. get:
  445. operationId: getWMSStoreStoreLayer
  446. tags:
  447. - "WMSLayers"
  448. description: Retrieves an individual WMS store layer for a given store. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers/{wmslayer}.xml" for XML).
  449. produces:
  450. - application/xml
  451. - application/json
  452. - text/html
  453. parameters:
  454. - name: workspace
  455. in: path
  456. description: Name of the workspace
  457. required: true
  458. type: string
  459. - name: wmsstore
  460. in: path
  461. description: Name of the store
  462. required: true
  463. type: string
  464. - name: wmslayer
  465. in: path
  466. description: Name of the layer
  467. required: true
  468. type: string
  469. - name: quietOnNotFound
  470. in: query
  471. description: When set to "true", will not log an exception when the style is not present. The 404 status code will still be returned. Allowable values are "true" or "false" (default).
  472. type: boolean
  473. required: false
  474. responses:
  475. 200:
  476. description: OK
  477. schema:
  478. $ref: "#/definitions/WMSStoreLayerInfo"
  479. examples:
  480. application/xml: |
  481. <wmsLayer>
  482. <name>dem</name>
  483. <nativeName>usgs:dem</nativeName>
  484. <namespace>
  485. <name>cite</name>
  486. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/cite.xml" type="application/xml"/>
  487. </namespace>
  488. <title>Digital elevation model</title>
  489. <description>USGS GTOPO30 digital elevation model</description>
  490. <abstract>USGS GTOPO30 digital elevation model</abstract>
  491. <keywords>
  492. <string>WCS</string>
  493. <string>GeoTIFF</string>
  494. <string>W100N40</string>
  495. </keywords>
  496. <nativeCRS>GEOGCS[&quot;WGS 84&quot;, &#xd;
  497. DATUM[&quot;World Geodetic System 1984&quot;, &#xd;
  498. SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], &#xd;
  499. AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], &#xd;
  500. PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], &#xd;
  501. UNIT[&quot;degree&quot;, 0.017453292519943295], &#xd;
  502. AXIS[&quot;Geodetic longitude&quot;, EAST], &#xd;
  503. AXIS[&quot;Geodetic latitude&quot;, NORTH], &#xd;
  504. AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</nativeCRS>
  505. <srs>EPSG:4326</srs>
  506. <nativeBoundingBox>
  507. <minx>-100.0</minx>
  508. <maxx>-60.000000000015994</maxx>
  509. <miny>-9.999999999980012</miny>
  510. <maxy>39.99999999999999</maxy>
  511. <crs>EPSG:4326</crs>
  512. </nativeBoundingBox>
  513. <latLonBoundingBox>
  514. <minx>-100.0</minx>
  515. <maxx>-60.000000000015994</maxx>
  516. <miny>-9.999999999980012</miny>
  517. <maxy>39.99999999999999</maxy>
  518. <crs>EPSG:4326</crs>
  519. </latLonBoundingBox>
  520. <projectionPolicy>FORCE_DECLARED</projectionPolicy>
  521. <enabled>true</enabled>
  522. <metadata>
  523. <entry key="cachingEnabled">false</entry>
  524. </metadata>
  525. <store class="wmsStore">
  526. <name>cite:altgs</name>
  527. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs.xml" type="application/xml"/>
  528. </store>
  529. </wmsLayer>
  530. application/json: |
  531. {"wmsLayer":{"name":"dem","nativeName":"usgs:dem","namespace":{"name":"cite","href":"http://localhost:8080/geoserver/rest/namespaces/cite.json"},"title":"Digital elevation model","description":"USGS GTOPO30 digital elevation model","abstract":"USGS GTOPO30 digital elevation model","keywords":{"string":["WCS","GeoTIFF","W100N40"]},"nativeCRS":"GEOGCS[\"WGS 84\", \r\n DATUM[\"World Geodetic System 1984\", \r\n SPHEROID[\"WGS 84\", 6378137.0, 298.257223563, AUTHORITY[\"EPSG\",\"7030\"]], \r\n AUTHORITY[\"EPSG\",\"6326\"]], \r\n PRIMEM[\"Greenwich\", 0.0, AUTHORITY[\"EPSG\",\"8901\"]], \r\n UNIT[\"degree\", 0.017453292519943295], \r\n AXIS[\"Geodetic longitude\", EAST], \r\n AXIS[\"Geodetic latitude\", NORTH], \r\n AUTHORITY[\"EPSG\",\"4326\"]]","srs":"EPSG:4326","nativeBoundingBox":{"minx":-100,"maxx":-60.000000000015994,"miny":-9.999999999980012,"maxy":39.99999999999999,"crs":"EPSG:4326"},"latLonBoundingBox":{"minx":-100,"maxx":-60.000000000015994,"miny":-9.999999999980012,"maxy":39.99999999999999,"crs":"EPSG:4326"},"projectionPolicy":"FORCE_DECLARED","enabled":true,"metadata":{"entry":{"@key":"cachingEnabled","$":"false"}},"store":{"@class":"wmsStore","name":"cite:altgs","href":"http://localhost:8080/geoserver/rest/workspaces/cite/wmsstores/altgs.json"}}}
  532. post:
  533. operationId: postWMSStoreStoreLayer
  534. tags:
  535. - "WMSLayers"
  536. description: Invalid. Use PUT to edit a layer, or POST on the /wmslayers endpoint to add a new layer.
  537. responses:
  538. 405:
  539. description: Method Not Allowed
  540. put:
  541. operationId: putWMSStoreStoreLayer
  542. tags:
  543. - "WMSLayers"
  544. description: Edits an existing WMS store layer.
  545. parameters:
  546. - name: workspace
  547. in: path
  548. description: Name of the workspace
  549. required: true
  550. type: string
  551. - name: wmsstore
  552. in: path
  553. description: Name of the store
  554. required: true
  555. type: string
  556. - name: wmslayer
  557. in: path
  558. description: Name of the layer to be edited
  559. required: true
  560. type: string
  561. - name: WMSStoreLayerBody
  562. in: body
  563. description: Body of the WMS store layer
  564. required: true
  565. schema:
  566. $ref: "#/definitions/WMSStoreLayerInfo"
  567. - name: calculate
  568. in: query
  569. description: Specifies whether to recalculate any bounding boxes for a wms layer. Some properties are automatically recalculated when necessary. In particular, the native bounding box is recalculated when the projection or projection policy are changed, and the lat/lon bounding box is recalculated when the native bounding box is recalculated, or when a new native bounding box is explicitly provided in the request. (The native and lat/lon bounding boxes are not automatically recalculated when they are explicitly included in the request.) In addition, the client may explicitly request a fixed set of fields to calculate, by including a comma-separated list of their names in the recalculate parameter. The empty parameter 'recalculate=' is useful avoid slow recalculation when operating against large datasets as 'recalculate=' avoids calculating any fields, regardless of any changes to projection, projection policy, etc. The nativebbox parameter 'recalculate=nativebbox' is used recalculates the native bounding box, while avoiding recalculating the lat/lon bounding box. Recalculate parameters can be used in together - 'recalculate=nativebbox,latlonbbox' can be used after a bulk import to to recalculates both the native bounding box and the lat/lon bounding box.
  570. required: false
  571. type: array
  572. collectionFormat: csv
  573. minItems: 0
  574. maxItems: 2
  575. items:
  576. type: string
  577. enum: [nativebbox,latlonbbox]
  578. consumes:
  579. - application/xml
  580. - application/json
  581. responses:
  582. 201:
  583. description: Created
  584. headers:
  585. Location:
  586. description: Location of the newly created layer
  587. type: string
  588. delete:
  589. operationId: deleteWMSStoreStoreLayer
  590. tags:
  591. - "WMSLayers"
  592. description: Deletes a layer from the server.
  593. parameters:
  594. - name: workspace
  595. in: path
  596. description: Name of the workspace
  597. required: true
  598. type: string
  599. - name: wmsstore
  600. in: path
  601. description: Name of the store
  602. required: true
  603. type: string
  604. - name: wmslayer
  605. in: path
  606. description: Name of the layer to be deleted
  607. required: true
  608. type: string
  609. - name: recurse
  610. in: query
  611. description: Recursively deletes all layers referenced by the specified wmslayer. Allowed values for this parameter are true or false. The default value is false. A request with 'recurse=false' will fail if any layers reference the wmslayer.
  612. required: false
  613. type: boolean
  614. default: false
  615. responses:
  616. 200:
  617. description: OK
  618. definitions:
  619. WMSStoreLayersList:
  620. title: wmsLayers
  621. type: array
  622. items:
  623. title: wmsLayer
  624. type: object
  625. properties:
  626. name:
  627. type: string
  628. description: Name of the layer
  629. link:
  630. type: string
  631. description: URL of the layer representation
  632. WMSStoreLayersAvailableList:
  633. title: list
  634. type: array
  635. items:
  636. title: wmsLayerName
  637. type: object
  638. properties:
  639. name:
  640. type: string
  641. description: Name of the layer
  642. link:
  643. type: string
  644. description: URL of the layer representation
  645. WMSStoreLayerInfo:
  646. title: wmsLayer
  647. xml:
  648. name: wmsLayer
  649. type: object
  650. properties:
  651. name:
  652. type: string
  653. description: Name of the layer, corresponding to the published name of the resource
  654. nativeName:
  655. type: string
  656. description: Name of the layer as known on the remote WMS
  657. namespace:
  658. type: object
  659. description: Namespace of the layer
  660. properties:
  661. name:
  662. type: string
  663. description: Name of the namespace
  664. link:
  665. type: string
  666. description: URL to the namespace representation.
  667. title:
  668. type: string
  669. description: Title of the layer
  670. abstract:
  671. type: string
  672. description: Description of the layer
  673. description:
  674. type: string
  675. description: Same as abstract
  676. keywords:
  677. type: array
  678. description: Collection of keywords associated with the layer
  679. items:
  680. type: object
  681. properties:
  682. string:
  683. type: string
  684. description: Keyword
  685. metadatalinks:
  686. type: object
  687. description: Wraps a collection of metadata links
  688. properties:
  689. metadataLink:
  690. type: array
  691. description: A collection of metadata links
  692. items:
  693. type: object
  694. properties:
  695. type:
  696. type: string
  697. description: MIME type
  698. metadataType:
  699. type: string
  700. description: Type of metadata such as "FGDC"
  701. content:
  702. type: string
  703. description: Link URL
  704. dataLinks:
  705. type: object
  706. description: Wraps a collection of data links
  707. properties:
  708. metadataLink:
  709. type: array
  710. description: Collection of data links
  711. items:
  712. type: object
  713. properties:
  714. type:
  715. type: string
  716. description: MIME type
  717. content:
  718. type: string
  719. description: Link URL
  720. nativeCRS:
  721. type: string
  722. description: Native coordinate reference system object in WKT
  723. srs:
  724. type: string
  725. description: Identifier of coordinate reference system
  726. nativeBoundingBox:
  727. type: object
  728. description: Bounds of the layer in its declared CRS.
  729. properties:
  730. minx:
  731. type: number
  732. description: Min x coordinate
  733. maxx:
  734. type: number
  735. description: Max x coordinate
  736. miny:
  737. type: number
  738. description: Min y coordinate
  739. maxy:
  740. type: number
  741. description: Max y coordinate
  742. crs:
  743. type: string
  744. description: Coordinate reference system of the bounding box
  745. latLonBoundingBox:
  746. type: object
  747. description: Bounds of the layer in latitude / longitude. This value represents a "fixed value" and is not calculated.
  748. properties:
  749. minx:
  750. type: number
  751. description: Min x coordinate
  752. maxx:
  753. type: number
  754. description: Max x coordinate
  755. miny:
  756. type: number
  757. description: Min y coordinate
  758. maxy:
  759. type: number
  760. description: Max y coordinate
  761. crs:
  762. type: string
  763. description: Coordinate reference system object of the bounding box
  764. projectionPolicy:
  765. type: string
  766. description: How to handle the coordinate reference system (native versus declared)
  767. enum:
  768. - FORCE_DECLARED
  769. - REPROJECT_TO_DECLARE
  770. - NONE
  771. enabled:
  772. type: boolean
  773. description: Whether the layer is enabled
  774. metadata:
  775. type: array
  776. description: A list of key/value metadata pairs.
  777. items:
  778. $ref: "#/definitions/MetadataEntry"
  779. store:
  780. type: object
  781. description: Store conaining the resource
  782. properties:
  783. '@class':
  784. type: string
  785. description: Class of the store
  786. name:
  787. type: string
  788. description: Name of the store
  789. href:
  790. type: string
  791. description: URL to the data store
  792. forcedRemoteStyle:
  793. type: string
  794. description: Remote style to be used in remote GetMap request.
  795. selectedRemoteFormats:
  796. type: array
  797. description: Additional list of image formats supported by remote WMS Server.
  798. items:
  799. type: string
  800. preferredFormat:
  801. type: string
  802. description: Output image format to be used in remote GetMap request
  803. selectedRemoteStyles:
  804. type: array
  805. description: Additional list of remote styles that can be used to remote GetMap requests.
  806. items:
  807. type: string
  808. allAvailableRemoteStyles:
  809. type: array
  810. description: List of complete style info objects that contain name, sld format and GetLegendRequests.
  811. items:
  812. $ref: '#/definitions/StyleInfo'
  813. minScale:
  814. type: number
  815. description: minimum scale denominator, works like Scale denomintors in SLD.
  816. maxScale:
  817. type: number
  818. description: maximum scale denominator, works like Scale denomintors in SLD.
  819. metadataBBoxRespected:
  820. type: boolean
  821. description: An optimization that skips remote GetMap requests if requested Map is outside advertised bounds.
  822. MetadataEntry:
  823. type: object
  824. title: entry
  825. properties:
  826. '@key':
  827. title: key
  828. type: string
  829. enum:
  830. - regionateStrategy
  831. - regionateFeatureLimit
  832. - cacheAgeMax
  833. - cachingEnabled
  834. - regionateAttribute
  835. - indexingEnabled
  836. - dirName
  837. description: Key used for metadata entry
  838. text:
  839. type: string
  840. description: Value of given key
  841. StyleInfo:
  842. type: object
  843. title: style
  844. properties:
  845. name:
  846. type: string
  847. description: Name of remote style
  848. format:
  849. type: string
  850. description: format of style
  851. example: "sld"
  852. languageVersion:
  853. type: object
  854. properties:
  855. version:
  856. type: string
  857. description: versioon of format
  858. example: "1.0.0"
  859. legend:
  860. type: object
  861. properties:
  862. width:
  863. type: number
  864. description: width of remote legend graphic
  865. height:
  866. type: number
  867. description: height of remote legend graphics
  868. format:
  869. type: string
  870. description: image format of legend graphic
  871. example: "image/png"
  872. onlineResource:
  873. type: string
  874. description: GetLegendGraphic request URL