Skip to content

The API documentation (swagger) does not match the response on the POST endpoint /api/v2/vpn/wireguard/peer #713

@matiasAS

Description

@matiasAS

I have an observation, in the 2.5.0 api, create a wireguard peer:

Image

The documentation does not include the peer ID in the data, but if I make the request I get:

{'code': 200, 'status': 'ok', 'response_id': 'SUCCESS', 'message': '', 'data': {'id': 3, 'enabled': True, 'tun': 'tun_wg0', 'endpoint': None, 'port': None, 'descr': 'black-stream', 'persistentkeepalive': 25, 'publickey': '........', 'allowedips': [{'parent_id': 3, 'id': 0, 'address': '10.50.50.3', 'mask': 32, 'descr': '#'}]}}

The ID is included in the data.

I would appreciate a correction so the documentation is aligned or consistent.

Best regards
Matias

@jaredhendrickson13

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementIssues or PRs that enhance existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions