Add docstring examples.
This commit is contained in:
parent
63718ffd19
commit
2f7c61cf7d
|
@ -8,12 +8,19 @@ import models
|
|||
import pprint
|
||||
|
||||
# Initialise Flask
|
||||
app = Flask(__name__)
|
||||
app = Flask(__name__)
|
||||
app.debug = False
|
||||
|
||||
|
||||
@app.route("/drivers", methods = ["GET"])
|
||||
def api_drivers():
|
||||
"""Return drivers.
|
||||
|
||||
:param nome
|
||||
:type na
|
||||
:returns: http response
|
||||
|
||||
"""
|
||||
data = {"drivers" : conf_file.get_drivers()}
|
||||
resp = jsonify(data)
|
||||
resp.status_code = 200
|
||||
|
|
|
@ -6,6 +6,7 @@ import os
|
|||
import re
|
||||
|
||||
class Model(object):
|
||||
"""Implements Alexandria reference model."""
|
||||
def __init__(self):
|
||||
|
||||
self.reference_items = []
|
||||
|
|
Loading…
Reference in New Issue