Clean up docstrings

This commit is contained in:
BBaoVanC 2020-10-05 19:29:07 -05:00
parent 3d7edab395
commit b809edd49d
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -99,7 +99,7 @@ def api_get_products():
@app.route("/api/v1/product/<searchmethod>/<search>", methods=["GET"]) @app.route("/api/v1/product/<searchmethod>/<search>", methods=["GET"])
def api_get_product_information(searchmethod, search): def api_get_product_information(searchmethod, search):
"""Route to get a information about a product""" """Route to get information about a product"""
session = Session() session = Session()
try: try:
if searchmethod == 'name': if searchmethod == 'name':
@ -129,8 +129,8 @@ def api_get_product_information(searchmethod, search):
@app.route("/api/v1/brands", methods=["GET"]) @app.route("/api/v1/brands", methods=["GET"])
def api_list_brands(): def api_get_brands():
"""Route to list all brands""" """Route to get a list of all brands"""
session = Session() session = Session()
try: try:
data = {} data = {}
@ -155,8 +155,8 @@ def api_get_brand_by_name(search):
@app.route("/api/v1/units", methods=["GET"]) @app.route("/api/v1/units", methods=["GET"])
def api_list_units(): def api_get_units():
"""Route to list all units""" """Route to get a list of all units"""
session = Session() session = Session()
try: try:
data = {} data = {}
@ -181,8 +181,8 @@ def api_get_unit_by_name(search):
@app.route("/api/v1/purchases", methods=["GET"]) @app.route("/api/v1/purchases", methods=["GET"])
def api_list_purchases(): def api_get_purchases():
"""Route to list all purchases""" """Route to get a list of all purchases"""
session = Session() session = Session()
try: try:
data = {} data = {}
@ -212,8 +212,8 @@ def api_get_purchase_by_id(search):
@app.route("/api/v1/uses", methods=["GET"]) @app.route("/api/v1/uses", methods=["GET"])
def api_list_uses(): def api_get_uses():
"""Route to list all uses""" """Route to get a list of all uses"""
session = Session() session = Session()
try: try:
data = {} data = {}