Skip to content

Instantly share code, notes, and snippets.

View bharathjinka09's full-sized avatar
🏠
Working from home

JINKA RANGA BHARATH bharathjinka09

🏠
Working from home
View GitHub Profile
@bharathjinka09
bharathjinka09 / app.py
Created February 1, 2022 11:08 — forked from arundhaj/app.py
Documenting Flask REST APIs with Swagger Specification and Swagger UI
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
from flask import Flask, jsonify, render_template, send_from_directory
from marshmallow import Schema, fields
app = Flask(__name__, template_folder='swagger/templates')
@app.route('/')