Skip to content

dmi_open_data.metobs.CapabilitiesApi

All URIs are relative to https://dmigw.govcloud.dk

Method HTTP request Description
get_collections GET /v2/metObs/collections
get_landing_page GET /v2/metObs/ Landing page for service
get_observation_collection GET /v2/metObs/collections/observation Get information about the observation feature collection
get_station_collection GET /v2/metObs/collections/station Get information about the station feature collection
get_the_conformance GET /v2/metObs/conformance Get the list of conformance classes that this service implements

get_collections

Collections get_collections()

Example

import dmi_open_data.metobs
from dmi_open_data.metobs.models.collections import Collections
from dmi_open_data.metobs.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dmigw.govcloud.dk
# See configuration.py for a list of all supported configuration parameters.
configuration = dmi_open_data.metobs.Configuration(
    host = "https://dmigw.govcloud.dk"
)


# Enter a context with an instance of the API client
with dmi_open_data.metobs.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dmi_open_data.metobs.CapabilitiesApi(api_client)

    try:
        api_response = api_instance.get_collections()
        print("The response of CapabilitiesApi->get_collections:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CapabilitiesApi->get_collections: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Collections

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_landing_page

LandingPage get_landing_page()

Landing page for service

Example

import dmi_open_data.metobs
from dmi_open_data.metobs.models.landing_page import LandingPage
from dmi_open_data.metobs.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dmigw.govcloud.dk
# See configuration.py for a list of all supported configuration parameters.
configuration = dmi_open_data.metobs.Configuration(
    host = "https://dmigw.govcloud.dk"
)


# Enter a context with an instance of the API client
with dmi_open_data.metobs.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dmi_open_data.metobs.CapabilitiesApi(api_client)

    try:
        # Landing page for service
        api_response = api_instance.get_landing_page()
        print("The response of CapabilitiesApi->get_landing_page:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CapabilitiesApi->get_landing_page: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

LandingPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Operation -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_observation_collection

Collection get_observation_collection()

Get information about the observation feature collection

Example

import dmi_open_data.metobs
from dmi_open_data.metobs.models.collection import Collection
from dmi_open_data.metobs.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dmigw.govcloud.dk
# See configuration.py for a list of all supported configuration parameters.
configuration = dmi_open_data.metobs.Configuration(
    host = "https://dmigw.govcloud.dk"
)


# Enter a context with an instance of the API client
with dmi_open_data.metobs.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dmi_open_data.metobs.CapabilitiesApi(api_client)

    try:
        # Get information about the observation feature collection
        api_response = api_instance.get_observation_collection()
        print("The response of CapabilitiesApi->get_observation_collection:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CapabilitiesApi->get_observation_collection: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Collection

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Operation -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_station_collection

Collection get_station_collection()

Get information about the station feature collection

Example

import dmi_open_data.metobs
from dmi_open_data.metobs.models.collection import Collection
from dmi_open_data.metobs.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dmigw.govcloud.dk
# See configuration.py for a list of all supported configuration parameters.
configuration = dmi_open_data.metobs.Configuration(
    host = "https://dmigw.govcloud.dk"
)


# Enter a context with an instance of the API client
with dmi_open_data.metobs.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dmi_open_data.metobs.CapabilitiesApi(api_client)

    try:
        # Get information about the station feature collection
        api_response = api_instance.get_station_collection()
        print("The response of CapabilitiesApi->get_station_collection:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CapabilitiesApi->get_station_collection: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Collection

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Operation -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_the_conformance

Conformance get_the_conformance()

Get the list of conformance classes that this service implements

Example

import dmi_open_data.metobs
from dmi_open_data.metobs.models.conformance import Conformance
from dmi_open_data.metobs.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dmigw.govcloud.dk
# See configuration.py for a list of all supported configuration parameters.
configuration = dmi_open_data.metobs.Configuration(
    host = "https://dmigw.govcloud.dk"
)


# Enter a context with an instance of the API client
with dmi_open_data.metobs.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dmi_open_data.metobs.CapabilitiesApi(api_client)

    try:
        # Get the list of conformance classes that this service implements
        api_response = api_instance.get_the_conformance()
        print("The response of CapabilitiesApi->get_the_conformance:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CapabilitiesApi->get_the_conformance: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Conformance

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Operation -

[Back to top] [Back to API list] [Back to Model list] [Back to README]