Skip to content

Instantly share code, notes, and snippets.

View remster85's full-sized avatar
🎯
Day 34 of #100DaysOfCode Challenge

remster85

🎯
Day 34 of #100DaysOfCode Challenge
View GitHub Profile
@remster85
remster85 / customswagger_flask.py
Created May 29, 2020 13:08
Custom Swagger Flask
#!/usr/bin/env python
from swagger_ui_bundle import swagger_ui_path
import json
from flask import Flask, Blueprint, send_from_directory, render_template
swagger_bp = Blueprint(
'swagger_ui',
__name__,
import azure.cosmos.cosmos_client as cosmos_client
import azure.cosmos.errors as errors
import azure.cosmos.http_constants as http_constants
import os
import json
url = 'https://remstrava.documents.azure.com:443/'
key = ''
client = cosmos_client.CosmosClient(url, {'masterKey': key})
import azure.cosmos.cosmos_client as cosmos_client
import azure.cosmos.errors as errors
import azure.cosmos.http_constants as http_constants
import os
import json
url = 'https://remstrava.documents.azure.com:443/'
key = ''
client = cosmos_client.CosmosClient(url, {'masterKey': key})