API Documentation
Passwords ¶
Passwords ¶
POST /api/v2/passwords
Requests
POST /api/v2/passwords
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "passwords",
"attributes": {
"email": "test@email.com"
}
}
}
Responses
This response has no content.
Create a passwordPOST/api/v2/passwords
GET /api/v2/passwords/1
Requests
GET /api/v2/passwords/1BSSYBsQexdr23MFYZya
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1BSSYBsQexdr23MFYZya",
"type": "passwords",
"attributes": {
"email": "test@email.com",
"first_password": false
}
},
"meta": {}
}
GET /api/v2/passwords/1BSSYBsQexdr23MFYZya
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "404",
"code": "record_not_found",
"title": "Record Not Found",
"detail": "The requested record was not found",
"source": {}
}
]
}
GET /api/v2/passwords/gibberish
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "404",
"code": "record_not_found",
"title": "Record Not Found",
"detail": "The requested record was not found",
"source": {}
}
]
}
PATCH /api/v2/passwords/1
Requests
PATCH /api/v2/passwords/1BSSYBsQexdr23MFYZya
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "passwords",
"attributes": {
"password": "1BSSYBsQ",
"password_confirmation": "1BSSYBsQ"
}
}
}
Responses
This response has no content.
Generated by aglio on 20 Apr 2024