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 --- config.env.py | 2 - requirements.txt | 16 + swagger.html | 3057 ------------------------------------------------------ 3 files changed, 16 insertions(+), 3059 deletions(-) delete mode 100644 swagger.html diff --git a/config.env.py b/config.env.py index fd7c9ac..6726cb3 100644 --- a/config.env.py +++ b/config.env.py @@ -12,6 +12,4 @@ import os # Defaults for flask configuration IP = os.environ.get('IP', '127.0.0.1') PORT = os.environ.get('PORT', 5000) -#SERVER_NAME = os.environ.get('SERVER_NAME', 'localhost:5000') SECRET_KEY = os.environ.get('SESSION_KEY', default=''.join(secrets.token_hex(16))) - diff --git a/requirements.txt b/requirements.txt index 7e8c448..ea4aff3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,24 @@ +astroid==2.5 +beautifulsoup4==4.9.3 +certifi==2020.12.5 +chardet==3.0.4 click==7.1.2 Flask==1.1.2 Flask-SQLAlchemy==2.4.4 +gunicorn==20.0.4 +idna==2.10 +isort==5.7.0 itsdangerous==1.1.0 Jinja2==2.11.3 +lazy-object-proxy==1.5.2 MarkupSafe==1.1.1 +mccabe==0.6.1 +pylint==2.6.0 +pylint-quotes==0.2.1 +requests==2.24.0 +soupsieve==2.2 SQLAlchemy==1.3.23 +toml==0.10.2 +urllib3==1.25.11 Werkzeug==1.0.1 +wrapt==1.12.1 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