User Management
This user management does only provide some basic endpoints.
Create / Update User
PUT /users/{userId} HTTP/1.1
Host: core.photos.network
Authorization: Bearer <ACCESS_TOKEN>
{
"properties.email": "max.mustermann@photos.network",
"properties.firstName": "Max",
"properties.lastName": "Mustermann",
"properties.password": "myS3curePa$$wor!"
}
Properties | Description |
---|---|
properties.email |
Must not be empty and must be unique within the service instance. |
properties.firstName |
First name. |
properties.lastName |
Last name. |
properties.password |
User Password. If no value is provided, a default password is generated. |
Response
200 OK - User updated
201 CREATED - User created
Get User
GET /users/{userId} HTTP/1.1
Host: core.photos.network
Authorization: Bearer <ACCESS_TOKEN>
Response
{
"properties.email": "max.mustermann@photos.network",
"properties.firstName": "Max",
"properties.lastName": "Mustermann",
"properties.registrationDate": "yyyy-MM-ddTHH:mm:ssZ",
"properties.lastLogin": "yyyy-MM-ddTHH:mm:ssZ"
}
Delete User
DELETE /users/{userId} HTTP/1.1
Host: core.photos.network
Authorization: Bearer <ACCESS_TOKEN>
Response
200 OK - The user were successfully deleted.
Confirmation
Each password change needs to be confirmed by the user.
Not implemented yet?
This endpoint neither the requirement is implemented yet.
GET /users/{userId}/confirmations/{confirmationCode} HTTP/1.1
Host: core.photos.network