Skip to content

Commit

Permalink
quiz code attempt udacity#1
Browse files Browse the repository at this point in the history
  • Loading branch information
paulc1600 committed Jul 21, 2018
1 parent 8692136 commit 61d7a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vagrant/Lesson 16/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Create the appropriate app.route functions. Test and see if they work

#Make an app.route() decorator here for when the client sends the URI "/puppies"

@app.route(/puppies)
def puppiesFunction():
return "Yes, puppies!"


#Make another app.route() decorator here that takes in an integer named 'id' for when the client visits a URI like "/puppies/5"

@app.route(/puppies/<int:id>/'))
def puppiesFunctionId(id):
return "This method will act on the puppy with id %s" % id

Expand Down
2 changes: 1 addition & 1 deletion vagrant/Lesson 16/endpoints_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
print "Running Endpoint Tester....\n"
address = raw_input("Please enter the address of the server you want to access, \n If left blank the connection will be set to 'http://localhost:5000': ")
if address == '':
address = 'http://localhost:5000'
address = 'http://pw-unix1.westus.cloudapp.azure.com:5000/'
#Making a GET Request
print "Making a GET Request for /puppies..."
try:
Expand Down

0 comments on commit 61d7a8b

Please sign in to comment.