pvarki / python-rasenmaeher-api

1 stars 0 forks source link

enrollment api updates #30

Closed karppo closed 1 year ago

Aciid commented 1 year ago

@karppo

Status: 22.08.2023

Create invite-code when posting management-hash to route that has user-admin special role

curl -X 'POST' \
  'http://localhost:8000/api/v1/enrollment/invitecode/create' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "service_management_hash": "2zmoexoa9lyisvixlj37pshcmum6oxs4xvjisanaxn684cbj4nsa4t6py031gyev"
}

Enroll with invite code post invite-code and work_id

curl -X 'POST' \
  'http://localhost:8000/api/v1/enrollment/invitecode/enroll' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "service_management_hash": "2zmoexoa9lyisvixlj37pshcmum6oxs4xvjisanaxn684cbj4nsa4t16py031gyev_9FRE8J",
  "work_id": "KETTU20"
}'