geoserver-rest-api

Automate GeoServer configuration and resource management via its REST API.

49|9|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/znlgis/opengis-skills --skill geoserver-rest-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geoserver-rest-api
Source: https://github.com/znlgis/opengis-skills/tree/main/geoserver-rest-api
Command: npx skills add https://github.com/znlgis/opengis-skills --skill geoserver-rest-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides concise operational guidance for managing GeoServer programmatically, eliminating repetitive manual configuration of workspaces, datastores, layers, styles, services and security through the web UI.

Core Features & Use Cases

  • REST-based Configuration: Full mapping of GeoServer REST endpoints for system info, workspaces, namespaces, datastores, featuretypes, coveragestores, coverages, layers, layer groups and styles.
  • Automation & CI/CD: Example workflows and curl patterns for automating deployments, publishing PostGIS tables, uploading Shapefiles and GeoTIFFs, and setting default styles.
  • Operations & Caching: Instructions for reload/reset actions, GeoWebCache seed/truncate tasks, and security/user management to support operational maintenance.
  • Use Case: Integrate into deployment pipelines to create workspaces, provision datastores, publish layers, upload styles, and clear caches automatically after data updates.

Quick Start

Use the geoserver-rest-api skill to create a workspace named myws on http://localhost:8080/geoserver using admin:geoserver credentials and then upload a Shapefile to publish a layer.

Frequently Asked Questions about geoserver-rest-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GeoServer configuration via REST API?

To automate GeoServer configuration via REST API, use HTTP Basic authentication to send JSON or XML payloads for provisioning workspaces, datastores, feature types, coverages, styles, and layer groups. This replaces manual web UI configuration in CI/CD pipelines and operational scripts.

Can I publish PostGIS tables and upload Shapefiles to GeoServer automatically?

Yes, you can publish PostGIS tables and upload Shapefiles automatically using curl patterns and file uploads via the GeoServer REST API. This allows automated layer publishing and datastore provisioning during deployment without manual web UI interaction.

What is GeoServer REST API used for in CI/CD deployments?

The GeoServer REST API is used in CI/CD deployments to programmatically create workspaces, provision datastores, publish layers, upload styles, and clear caches automatically after data updates. It eliminates repetitive manual configuration through the web UI.

Does the GeoServer REST API support GeoWebCache operations and security management?

Yes, the GeoServer REST API supports GeoWebCache seed and truncate tasks for cache management, as well as security and user management for operational maintenance. These endpoints enable automated cache clearing and access control configuration.

What's the best way to manage GeoServer layer groups and service settings programmatically?

The best way to manage GeoServer layer groups and service settings programmatically is through the REST API using JSON or XML payloads with HTTP Basic authentication. This approach supports full mapping of REST endpoints for layers, styles, and service configurations in automated scripts.

Does GeoServer REST API support cascade delete semantics for resource cleanup?

Yes, the GeoServer REST API supports cascade delete semantics for resource cleanup during automated deployments. This ensures that removing workspaces, datastores, or layers also properly cleans up associated dependent resources through the REST endpoints.