cargo run
sudo -u postgres psql -d ict_management
terminal run:
diesel migration run
You have the following endpoints running on http://127.0.0.1:8080: Create user: POST /users Update user: PUT /users/{id} Deactivate user: PUT /users/{id}/deactivate
{
"username": "admin1",
"email": "admin1@example.com",
"password_hash": "plaintextpassword",
"role": "Admin"
}
{
"username": "admin1_updated",
"email": "admin1_updated@example.com"
}
Replace <USER_ID> with the actual UUID. PUT http://127.0.0.1:8080/users/<USER_ID>/deactivate