Skip to content

Commit

Permalink
Commity base API template
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Jul 27, 2020
1 parent 9ed552b commit 0970963
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions api/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from flask import Flask
from flask_restful import Api, Resource
import ECNQueue, jsonpickle

# Create Flask App
app = Flask(__name__)

# Create API Interface
api = Api(app)



class %%RESOURCENAME%%(Resource):
def get(self, %%DECORATOR%%) -> %%RETURN_TYPE%%:
"""%%DOCTSTRING%%"""
return %%SOMETHING%%



api.add_resource(%%RESOURCENAME%%, "%%ROUTE%%")



if __name__ == "__main__":
app.run()

0 comments on commit 0970963

Please sign in to comment.