curl --request GET \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/ \
--header 'Authorization: <authorization>'{
"error": "Missing required fields."
}
curl --request GET \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/ \
--header 'Authorization: <authorization>'{
"error": "Missing required fields."
}
Retrieves all passwords saved by the authenticated user.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/edimez14/password_generator/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/password-generator/view-all-saved-passwords/
{
"message": "Passwords saved by the user john_doe: ",
"passwords": [
{
"id": 1,
"name_pages": "Example Website",
"url": "https://example.com",
"password_saved": "MySecureP@ss123",
"user": 1
},
{
"id": 2,
"name_pages": "Test Site",
"url": "https://test.com",
"password_saved": "AnotherP@ss456",
"user": 1
}
]
}
{
"error": "Missing required fields."
}
{
"error": "password does not exist after creation."
}
{
"error": "error message"
}
curl -X GET https://api.example.com/api/password-generator/view-all-saved-passwords/ \
-H "Authorization: Bearer YOUR_TOKEN"
views.py:64 using the view_all_saved_passwords view function. It filters the SavedPasswords model by the authenticated user and serializes the results using SavedPasswordsSerializer.