Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for RESTful operations on Styles #14

Merged
merged 1 commit into from Jul 6, 2020
Merged

Conversation

mejackreed
Copy link
Contributor

Fixes #10 by providing a REST client for GeoServer Styles.

As noted in the class comments, the GeoServer Style API can support style creations in individual workspaces and layers, however, this PR only implements them at the top level.

See: https://docs.geoserver.org/latest/en/api/#1.0.0/styles.yaml

README documentation also update:

# via ./bin/console
Geoserver::Publish::Style.new.create(style_name: "raster_layer", filename: "raster_layer.sld")
sld = File.read("./spec/fixtures/files/payload/raster_layer.sld")
Geoserver::Publish::Style.new.update(style_name: "raster_layer", filename: "raster_layer.sld", payload: sld)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for publishing and assigning an SLD for a given layer
2 participants