Skip to content

[Bug]: Wrong naming in openapi #2884

@DmytroBurianovddscai

Description

@DmytroBurianovddscai

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)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

Status

Testing

Relationships

None yet

Development

No branches or pull requests

Issue actions