Level API

Default

healthz

return healthcheck

get health


/healthz

Usage and SDK Samples

curl -X GET "https://localhost/healthz"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.healthz();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#healthz");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.healthz();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#healthz");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// return healthcheck
[apiInstance healthzWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LevelApi = require('level_api');

var api = new LevelApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.healthz(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class healthzExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // return healthcheck
                apiInstance.healthz();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.healthz: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $api_instance->healthz();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->healthz: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    $api_instance->healthz();
};
if ($@) {
    warn "Exception when calling DefaultApi->healthz: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # return healthcheck
    api_instance.healthz()
except ApiException as e:
    print("Exception when calling DefaultApi->healthz: %s\n" % e)

Parameters

Responses

Status: 200 -


level

return water level

get level by station


/level

Usage and SDK Samples

curl -X GET "https://localhost/level"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String station = station_example; // String | NWS Station to query
        try {
            apiInstance.level(station);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#level");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String station = station_example; // String | NWS Station to query
        try {
            apiInstance.level(station);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#level");
            e.printStackTrace();
        }
    }
}
String *station = station_example; // NWS Station to query

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// return water level
[apiInstance levelWith:station
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LevelApi = require('level_api');

var api = new LevelApi.DefaultApi()

var station = station_example; // {String} NWS Station to query


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.level(station, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class levelExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var station = station_example;  // String | NWS Station to query

            try
            {
                // return water level
                apiInstance.level(station);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.level: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$station = station_example; // String | NWS Station to query

try {
    $api_instance->level($station);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->level: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $station = station_example; # String | NWS Station to query

eval { 
    $api_instance->level(station => $station);
};
if ($@) {
    warn "Exception when calling DefaultApi->level: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
station = station_example # String | NWS Station to query

try: 
    # return water level
    api_instance.level(station)
except ApiException as e:
    print("Exception when calling DefaultApi->level: %s\n" % e)

Parameters

Path parameters
Name Description
station*
String
NWS Station to query
Required

Responses

Status: 200 -

Status: 417 - Expectation Failed


stations

returns list of stations

get stations


/stations

Usage and SDK Samples

curl -X GET "https://localhost/stations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.stations();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.stations();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stations");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// returns list of stations
[apiInstance stationsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LevelApi = require('level_api');

var api = new LevelApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.stations(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class stationsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // returns list of stations
                apiInstance.stations();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.stations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $api_instance->stations();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->stations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    $api_instance->stations();
};
if ($@) {
    warn "Exception when calling DefaultApi->stations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # returns list of stations
    api_instance.stations()
except ApiException as e:
    print("Exception when calling DefaultApi->stations: %s\n" % e)

Parameters

Responses

Status: 200 -

Status: 417 - Expectation Failed