Skip to content

Commit

Permalink
Merge pull request #590 from LukasLohoff/add-download-config
Browse files Browse the repository at this point in the history
feat: introduce downloadConfig
  • Loading branch information
LukasLohoff authored Oct 14, 2022
2 parents c7ec758 + 5387b36 commit 01339fa
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public class DefaultLayerClientConfig implements LayerClientConfig {
)
private Boolean searchable;

@Schema(
description = "List of download configurations."
)
private ArrayList<DownloadConfig> downloadConfig;

@Schema(
description = "The search configuration."
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* SHOGun, https://terrestris.github.io/shogun/
*
* Copyright © 2022-present terrestris GmbH & Co. KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.terrestris.shogun.lib.model.jsonb.layer;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ToString
@EqualsAndHashCode
public class DownloadConfig implements Serializable {

@Schema(
description = "URL which allows to download the layer data.",
example = "https://example.com/geoserver/SHOGUN/ows?service=WFS&version=1.0.0&request=GetFeature&outputFormat=application%2Fjson",
required = true
)
private String downloadUrl;

@Schema(
description = "The displayed format name for the given downloadUrl.",
example = "GeoJSON"
)
private String formatName;

}

0 comments on commit 01339fa

Please sign in to comment.