From 2db9fcf921c5302336dfd3bc72983692b345d2aa Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Thu, 25 Feb 2021 20:54:00 -0500 Subject: reqs stuff and remove swagger html --- swagger.html | 3057 ---------------------------------------------------------- 1 file changed, 3057 deletions(-) delete mode 100644 swagger.html (limited to 'swagger.html') diff --git a/swagger.html b/swagger.html deleted file mode 100644 index 575ae4a..0000000 --- a/swagger.html +++ /dev/null @@ -1,3057 +0,0 @@ - - - - - RIT COVID Poller - - - - - - - - - - - - - - - - - -
-
-
- -
-
-
-
-

RIT COVID Poller

-
-
-
- -
-
-

V0

-
-
-
-

getv0History

-

Gets all historical data

-
-
-
-

-

Returns data from every day where the dashboard changed

-

-
-
/v0/history
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET "https://ritcoviddashboard.com/api/v0/history"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.V0Api;
-
-import java.io.File;
-import java.util.*;
-
-public class V0ApiExample {
-
-    public static void main(String[] args) {
-        
-        V0Api apiInstance = new V0Api();
-        try {
-            array[Day] result = apiInstance.getv0History();
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling V0Api#getv0History");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.V0Api;
-
-public class V0ApiExample {
-
-    public static void main(String[] args) {
-        V0Api apiInstance = new V0Api();
-        try {
-            array[Day] result = apiInstance.getv0History();
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling V0Api#getv0History");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-

-V0Api *apiInstance = [[V0Api alloc] init];
-
-// Gets all historical data
-[apiInstance getv0HistoryWithCompletionHandler: 
-              ^(array[Day] output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var RitCovidPoller = require('rit_covid_poller');
-
-var api = new RitCovidPoller.V0Api()
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.getv0History(callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class getv0HistoryExample
-    {
-        public void main()
-        {
-            
-            var apiInstance = new V0Api();
-
-            try
-            {
-                // Gets all historical data
-                array[Day] result = apiInstance.getv0History();
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling V0Api.getv0History: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\Api\V0Api();
-
-try {
-    $result = $api_instance->getv0History();
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling V0Api->getv0History: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::V0Api;
-
-my $api_instance = WWW::SwaggerClient::V0Api->new();
-
-eval { 
-    my $result = $api_instance->getv0History();
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling V0Api->getv0History: $@\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.V0Api()
-
-try: 
-    # Gets all historical data
-    api_response = api_instance.getv0_history()
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling V0Api->getv0History: %s\n" % e)
-
-
- -

Parameters

- - - - - - -

Responses

-

Status: 200 - successful operation

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

getv0Latest

-

Gets the latest data

-
-
-
-

-

Returns the most recent data from the official dashboard

-

-
-
/v0/latest
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET "https://ritcoviddashboard.com/api/v0/latest"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.V0Api;
-
-import java.io.File;
-import java.util.*;
-
-public class V0ApiExample {
-
-    public static void main(String[] args) {
-        
-        V0Api apiInstance = new V0Api();
-        try {
-            Day result = apiInstance.getv0Latest();
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling V0Api#getv0Latest");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.V0Api;
-
-public class V0ApiExample {
-
-    public static void main(String[] args) {
-        V0Api apiInstance = new V0Api();
-        try {
-            Day result = apiInstance.getv0Latest();
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling V0Api#getv0Latest");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-

-V0Api *apiInstance = [[V0Api alloc] init];
-
-// Gets the latest data
-[apiInstance getv0LatestWithCompletionHandler: 
-              ^(Day output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var RitCovidPoller = require('rit_covid_poller');
-
-var api = new RitCovidPoller.V0Api()
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.getv0Latest(callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class getv0LatestExample
-    {
-        public void main()
-        {
-            
-            var apiInstance = new V0Api();
-
-            try
-            {
-                // Gets the latest data
-                Day result = apiInstance.getv0Latest();
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling V0Api.getv0Latest: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\Api\V0Api();
-
-try {
-    $result = $api_instance->getv0Latest();
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling V0Api->getv0Latest: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::V0Api;
-
-my $api_instance = WWW::SwaggerClient::V0Api->new();
-
-eval { 
-    my $result = $api_instance->getv0Latest();
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling V0Api->getv0Latest: $@\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.V0Api()
-
-try: 
-    # Gets the latest data
-    api_response = api_instance.getv0_latest()
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling V0Api->getv0Latest: %s\n" % e)
-
-
- -

Parameters

- - - - - - -

Responses

-

Status: 200 - successful operation

- - - -
-
-
- -
- -
-
- -
-
-
-
-
- -
-
-
- - - - - - - - - - - - - - -- cgit v1.2.3