curl --request POST \
--url https://api.example.com/api/password-generator/save-passwords/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"user": 123,
"password_saved": "<string>",
"url": "<string>",
"name_pages": "<string>"
}
'{
"user": ["This field is required."],
"password_saved": ["This field is required."],
"url": ["This field is required."]
}
curl --request POST \
--url https://api.example.com/api/password-generator/save-passwords/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"user": 123,
"password_saved": "<string>",
"url": "<string>",
"name_pages": "<string>"
}
'{
"user": ["This field is required."],
"password_saved": ["This field is required."],
"url": ["This field is required."]
}
Saves a password for a specific URL or page. Requires authentication.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.
POST /api/password-generator/save-passwords/
{
"user": 1,
"password_saved": "MySecureP@ss123",
"url": "https://example.com",
"name_pages": "Example Website"
}
"password saved successfully"
{
"user": ["This field is required."],
"password_saved": ["This field is required."],
"url": ["This field is required."]
}
{
"error": "Missing required fields."
}
{
"error": "password does not exist after creation."
}
{
"error": "error message"
}
curl -X POST https://api.example.com/api/password-generator/save-passwords/ \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"user": 1,
"password_saved": "MySecureP@ss123",
"url": "https://example.com",
"name_pages": "Example Website"
}'
views.py:32 using the save_passwords view function. It validates the request data using SavedPasswordsSerializer and saves the password to the database associated with the authenticated user.