Closed Aciid closed 12 months ago
Workflow:
Added activate column to management table, not checked anywhere yet.
curl --location 'http://localhost:8000/api/v1/enrollment/invitecode/create' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"user_management_hash": "TestikalukalukalukaulinJotainAsdJotainJotainJotain"
}'
Returns:
{
"invite_code": "AP79VI9Q"
}
curl --location 'http://localhost:8000/api/v1/enrollment/invitecode?invitecode=AP79VI9Q' \
--header 'Accept: application/json'
{
"invitecode_is_active": true
}
curl --location --request PUT 'http://localhost:8000/api/v1/enrollment/invitecode/activate' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"invite_code": "AP79VI9Q"
}'
{
"invite_code": "AP79VI9Q"
}
curl --location --request PUT 'http://localhost:8000/api/v1/enrollment/invitecode/deactivate' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"invite_code": "AP79VI9Q"
}'
{
"invite_code": "AP79VI9Q"
}
curl --location --request DELETE 'http://localhost:8000/api/v1/enrollment/invitecode/AP79VI9Q'
{
"invite_code": "AP79VI9Q"
}
API tests failing because they are skeleton.
Add functionality to activate, deactivate and delete invite-codes