github.com/PDOK/gokoala@v0.50.6/internal/ogc/common/core/templates/landing-page.go.json (about)

     1  {{- /*gotype: github.com/PDOK/gokoala/internal/engine.TemplateData*/ -}}
     2  {
     3    "title": "{{ .Config.Title }}",
     4    "description": "{{ unmarkdown .Config.Abstract }}",
     5    "links": [
     6      {
     7        "rel": "self",
     8        "type": "application/json",
     9        "title": "Landing page as JSON",
    10        "href": "{{ .Config.BaseURL }}?f=json"
    11      },
    12      {
    13        "rel": "alternate",
    14        "type": "text/html",
    15        "title": "Landing page as HTML",
    16        "href": "{{ .Config.BaseURL }}?f=html"
    17      },
    18      {
    19        "rel": "service-desc",
    20        "type": "application/vnd.oai.openapi+json;version=3.0",
    21        "title": "The JSON OpenAPI 3.0 document that describes the API offered at this endpoint",
    22        "href": "{{ .Config.BaseURL }}/api?f=json"
    23      },
    24      {
    25        {{/* 'conformance' is deprecated in favor of 'rel/ogc/1.0/conformance' but required for backwards compat. */}}
    26        "rel": "conformance",
    27        "type": "application/json",
    28        "title": "OGC API conformance classes implemented by the API offered at this endpoint",
    29        "href": "{{ .Config.BaseURL }}/conformance?f=json"
    30      },
    31      {
    32        "rel": "http://www.opengis.net/def/rel/ogc/1.0/conformance",
    33        "type": "application/json",
    34        "title": "OGC API conformance classes implemented by the API offered at this endpoint",
    35        "href": "{{ .Config.BaseURL }}/conformance?f=json"
    36      },
    37      {
    38        "rel": "license",
    39        "type": "text/html",
    40        "title": "{{ .Config.License.Name }}",
    41        "href": "{{ .Config.License.URL }}"
    42      }
    43      {{ if .Config.OgcAPI.Styles }}
    44      ,
    45      {
    46        "rel": "http://www.opengis.net/def/rel/ogc/1.0/styles",
    47        "type": "application/json",
    48        "title": "The set of styles shared via this API",
    49        "href": "{{ .Config.BaseURL }}/styles"
    50      }
    51      {{ end }}
    52      {{ if .Config.OgcAPI.Tiles }}
    53      ,
    54      {
    55        "rel": "http://www.opengis.net/def/rel/ogc/1.0/tilesets-vector",
    56        "type": "application/json",
    57        "title": "The JSON representation of the list of all tiles served from this endpoint",
    58        "href": "{{ .Config.BaseURL }}/tiles"
    59      },
    60      {
    61        "rel": "http://www.opengis.net/def/rel/ogc/1.0/tiling-schemes",
    62        "type": "application/json",
    63        "title": "Retrieve the list of shared TileMatrixSets available from this API implementation.",
    64        "href": "{{ .Config.BaseURL }}/tileMatrixSets"
    65      }
    66      {{ end }}
    67      {{ if .Config.HasCollections }}
    68      ,
    69      {
    70        {{/* 'data' is deprecated in favor of 'rel/ogc/1.0/data' but required for backwards compat. */}}
    71        "rel" : "data",
    72        "type" : "application/json",
    73        "title" : "The JSON representation of the list of all data layers (collections) served from this endpoint",
    74        "href" : "{{ .Config.BaseURL }}/collections"
    75      },
    76      {
    77        "rel" : "http://www.opengis.net/def/rel/ogc/1.0/data",
    78        "type" : "application/json",
    79        "title" : "The JSON representation of the list of all data layers (collections) served from this endpoint",
    80        "href" : "{{ .Config.BaseURL }}/collections"
    81      }
    82      {{ end }}
    83    ]
    84  }