Managing workspaces with REST

Now that you are familiar with REST, it is time to get your hands on GeoServer and have a look at how its REST interface works.

Basically, it exposes operations to you so that you can manage all configurations' objects. You will find the same items, for example, layers and styles, which you are used to creating from the web interface.

In this first recipe, you will start with workspaces and namespaces, which are the logical groups that contain all other configuration's items.

Getting ready

We stated before that Python's main aims are simplicity and code readability; unfortunately, this is not always the case. Interacting with REST using standard Python libraries may be painful and very verbose. Luckily, there is an open ...

Get GeoServer Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.