Summary
Follow by api-docs we have GET /api/v1/group/{name}, however service use GET /api/v1/group/id
request:
curl -X 'GET' \
'https://dev.___/api/v1/group/admintf' \
-H 'accept: application/json' \
-H 'Cookie: defguard_session=r_______x'
error:
Error: response status is 400
Response body
Invalid URL: Cannot parse `admintf` to a `i64`
the same for PUT /api/v1/group/{name}
Steps to reproduce
1 goto https://vpn_site/api-docs/#/group/get_group
2 try it out
3 enter group name
4 execute
Expected behavior
by documentation use String value
Actual behavior
Use group ID (number)
Defguard version
v2.0.0
Environment details
Docker
Deployment / install method
Docker / Docker Compose
Relevant logs / output
Relevant configuration (redacted)
Summary
Follow by api-docs we have GET /api/v1/group/{name}, however service use GET /api/v1/group/id
request:
error:
the same for PUT /api/v1/group/{name}
Steps to reproduce
1 goto https://vpn_site/api-docs/#/group/get_group
2 try it out
3 enter group name
4 execute
Expected behavior
by documentation use String value
Actual behavior
Use group ID (number)
Defguard version
v2.0.0
Environment details
Docker
Deployment / install method
Docker / Docker Compose
Relevant logs / output
Relevant configuration (redacted)