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

Fixing the phonebook api for json response #1412

Merged
merged 5 commits into from
Jul 31, 2023

Conversation

0xUnicorn
Copy link
Contributor

Added new DectExportJsonView fixing #1380

200 reponse

{"phonebook": [{"number": "1234", "letters": "", "description": "", "activation_code": "7796672559"}, {"number": "8378", "letters": "test", "description": "", "activation_code": "4068685996"}]}

403 reponse

{"error": 403, "message": "Permission denied"}

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #1412 (a3d7ba4) into master (4e0af5e) will decrease coverage by 0.01%.
The diff coverage is 43.75%.

@@            Coverage Diff             @@
##           master    #1412      +/-   ##
==========================================
- Coverage   60.42%   60.41%   -0.01%     
==========================================
  Files         617      617              
  Lines       13482    13488       +6     
==========================================
+ Hits         8146     8149       +3     
- Misses       5336     5339       +3     
Files Changed Coverage Δ
src/phonebook/views.py 52.08% <40.00%> (-0.14%) ⬇️
src/phonebook/urls.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@tykling tykling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSV view can be deleted, otherwise great 👍

@0xUnicorn
Copy link
Contributor Author

@tykling done!

@tykling tykling merged commit e02237a into bornhack:master Jul 31, 2023
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants