Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Krysed/devops-capstone-project
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5a6bc753a604271c169382bdc31eeaa538d0604f
Choose a base ref
..
head repository: Krysed/devops-capstone-project
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b50e172be87851b8381c45b18ce315ee65bd6ed6
Choose a head ref
Showing with 5 additions and 0 deletions.
  1. +5 −0 service/routes.py
5 changes: 5 additions & 0 deletions service/routes.py
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ def index():
# CREATE A NEW ACCOUNT
######################################################################


@app.route("/accounts", methods=["POST"])
def create_accounts():
"""
@@ -62,6 +63,7 @@ def create_accounts():
# LIST ALL ACCOUNTS
######################################################################


@app.route("/accounts", methods=["GET"])
def list_accounts():
"""
@@ -80,6 +82,7 @@ def list_accounts():
# READ AN ACCOUNT
######################################################################


@app.route("/accounts/<int:account_id>", methods=["GET"])
def get_accounts(account_id):
"""
@@ -98,6 +101,7 @@ def get_accounts(account_id):
# UPDATE AN EXISTING ACCOUNT
######################################################################


@app.route("/accounts/<int:account_id>", methods=["PUT"])
def update_accounts(account_id):
"""
@@ -117,6 +121,7 @@ def update_accounts(account_id):
# DELETE AN ACCOUNT
######################################################################


@app.route("/accounts/<int:account_id>", methods=["DELETE"])
def delete_accounts(account_id):
"""