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

updated readme #3719

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
fe700b0
updated readme
sameduTM Jan 16, 2025
fe2b9a2
status of API
sameduTM Jan 20, 2025
b74f496
set content type to json
sameduTM Jan 20, 2025
37beb7a
pep8
sameduTM Jan 20, 2025
228b010
remove wildcard import from top oof module
sameduTM Jan 20, 2025
c448cca
added more characters to function docs of get and count methods
sameduTM Jan 20, 2025
4c6cdc9
some stats task 4 commit
sameduTM Jan 20, 2025
54a7cc3
error 4o4 code response
sameduTM Jan 21, 2025
5a3f68b
State view that handles all default RESTFul API actions
sameduTM Jan 22, 2025
788f22a
E713 test for membership should be 'not in'
sameduTM Jan 22, 2025
3f00528
changed the error response code
sameduTM Jan 22, 2025
5ea83cf
removed pycache
sameduTM Jan 22, 2025
b167ba1
use abort instead of make_response
sameduTM Jan 22, 2025
7f6bd0a
Correct output for get with FileStorage and Object existing
sameduTM Jan 23, 2025
1ee080a
changed return value of get method in state module to dict
sameduTM Jan 23, 2025
403e643
indentation error fixed in index.py file
sameduTM Jan 23, 2025
ad75076
rewrote the code by shrinking it
sameduTM Jan 23, 2025
3d57538
city view code updated
sameduTM Jan 24, 2025
b3e8eb5
state without cities listed
sameduTM Jan 24, 2025
4a845eb
not existing state for PUT
sameduTM Jan 24, 2025
0cb52a9
amenities view added
sameduTM Jan 24, 2025
ad114ba
returnn value for delAmn function changed to JSON
sameduTM Jan 24, 2025
7bb03bc
pep8 check
sameduTM Jan 24, 2025
29176f4
updateAmenity method for amenity view
sameduTM Jan 24, 2025
28621cc
get amenities view
sameduTM Jan 25, 2025
2db3944
user view coded
sameduTM Jan 25, 2025
5353fcb
new view for place
sameduTM Jan 25, 2025
8240be4
pep8 check
sameduTM Jan 25, 2025
0fd3d82
pep8 check
sameduTM Jan 25, 2025
29c5144
push to start
sameduTM Jan 25, 2025
05cbe49
updates place handles if place_id is not linked
sameduTM Jan 26, 2025
b726998
review views
sameduTM Jan 26, 2025
7f78f74
review views ammended
sameduTM Jan 26, 2025
fdf1fec
HTTP access control(CORS)
sameduTM Jan 29, 2025
6fe7b9b
jsonify list of all users
sameduTM Jan 29, 2025
23281db
returnn correct 404 response
sameduTM Jan 29, 2025
a9ead83
correct JSON response
sameduTM Jan 29, 2025
d7b1fb5
use loop for dictionary kwargs
sameduTM Jan 29, 2025
a3f0fe7
jsonify list of all amenities
sameduTM Jan 29, 2025
aa9066b
get everything within the loop
sameduTM Jan 29, 2025
f4826ed
pep8 fixes
sameduTM Jan 29, 2025
d2a2ae4
introduce loops
sameduTM Jan 29, 2025
361ae49
hash passwords
sameduTM Jan 30, 2025
ecb9f2f
pep8
sameduTM Jan 30, 2025
f3733f6
pep8
sameduTM Jan 30, 2025
01fb884
hash passwords
sameduTM Jan 30, 2025
78bf5ab
Place-Amenity relationship
sameduTM Jan 30, 2025
7efb057
renamed places_amenity file
sameduTM Jan 30, 2025
e003bba
documented module
sameduTM Jan 30, 2025
ce31071
add delete method
sameduTM Jan 30, 2025
d306acc
fix pep8
sameduTM Jan 30, 2025
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
Prev Previous commit
Next Next commit
pep8 fixes
sameduTM committed Jan 29, 2025
commit f4826ed46ff0eac6862bd43d9fe00ca6dfd94ee9
Binary file modified api/v1/views/__pycache__/amenities.cpython-312.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion api/v1/views/amenities.py
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ def getAmenities():
"""retrieve the list of all Amenity objects"""
all_amenities = storage.all(Amenity)

list_amenities = [val.to_dict() for val in all_amenities.values()]
list_amenities = [val.to_dict() for val in all_amenities.values()]
return jsonify(list_amenities)