Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add if statement to run server #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,43 @@
def puppiesFunction():
if request.method == 'GET':
#Call the method to Get all of the puppies


elif request.method == 'POST':
#Call the method to make a new puppy
#Make another app.route() decorator here that takes in an integer id in the



#Make another app.route() decorator here that takes in an integer id in the

def puppiesFunctionId(id):
if request.method == 'GET':
#Call the method to get a specific puppy based on their id

if request.method == 'PUT':
#Call the method to update a puppy

elif request.method == 'DELETE':
#Call the method to remove a puppy



def getAllPuppies():
return "Getting All the puppies!"

def makeANewPuppy():
return "Creating A New Puppy!"

def getPuppy(id):
return "Getting Puppy with id %s" % id

def updatePuppy(id):
return "Updating a Puppy with id %s" % id

def deletePuppy(id):
return "Removing Puppy with id %s" % id


if __name__ == '__main__':
app.debug = True
app.run(host='0.0.0.0', port=5000)