Clean up docstrings
This commit is contained in:
parent
3d7edab395
commit
b809edd49d
18
webapi.py
18
webapi.py
@ -99,7 +99,7 @@ def api_get_products():
|
||||
|
||||
@app.route("/api/v1/product/<searchmethod>/<search>", methods=["GET"])
|
||||
def api_get_product_information(searchmethod, search):
|
||||
"""Route to get a information about a product"""
|
||||
"""Route to get information about a product"""
|
||||
session = Session()
|
||||
try:
|
||||
if searchmethod == 'name':
|
||||
@ -129,8 +129,8 @@ def api_get_product_information(searchmethod, search):
|
||||
|
||||
|
||||
@app.route("/api/v1/brands", methods=["GET"])
|
||||
def api_list_brands():
|
||||
"""Route to list all brands"""
|
||||
def api_get_brands():
|
||||
"""Route to get a list of all brands"""
|
||||
session = Session()
|
||||
try:
|
||||
data = {}
|
||||
@ -155,8 +155,8 @@ def api_get_brand_by_name(search):
|
||||
|
||||
|
||||
@app.route("/api/v1/units", methods=["GET"])
|
||||
def api_list_units():
|
||||
"""Route to list all units"""
|
||||
def api_get_units():
|
||||
"""Route to get a list of all units"""
|
||||
session = Session()
|
||||
try:
|
||||
data = {}
|
||||
@ -181,8 +181,8 @@ def api_get_unit_by_name(search):
|
||||
|
||||
|
||||
@app.route("/api/v1/purchases", methods=["GET"])
|
||||
def api_list_purchases():
|
||||
"""Route to list all purchases"""
|
||||
def api_get_purchases():
|
||||
"""Route to get a list of all purchases"""
|
||||
session = Session()
|
||||
try:
|
||||
data = {}
|
||||
@ -212,8 +212,8 @@ def api_get_purchase_by_id(search):
|
||||
|
||||
|
||||
@app.route("/api/v1/uses", methods=["GET"])
|
||||
def api_list_uses():
|
||||
"""Route to list all uses"""
|
||||
def api_get_uses():
|
||||
"""Route to get a list of all uses"""
|
||||
session = Session()
|
||||
try:
|
||||
data = {}
|
||||
|
Loading…
Reference in New Issue
Block a user