Skip to content

Missing group of api endpoints in v2 #501

@droid-sheep

Description

@droid-sheep

Describe the bug

After freshly installing the pfrest pkg (pfSense-2.7.2-pkg-RESTAPI.pkg) some endpoint groups are not available (HTTP 404).
Following groups of endpoints are not available (referencing https://pfrest.org/api-docs/#/):

  • system
  • user
  • vpn

To Reproduce
Steps to reproduce the behavior:

  1. Install pkg via pfsense command line:
    pkg-static -C /dev/null add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.7.2-pkg-RESTAPI.pkg
  2. Switch Authentication to KEY based only
  3. Create a REST Key under keys tab. Hashing = SHA256, Length = 16
  4. Call via REST API Client (i used Advanced Rest client):
GET https://<fw>/api/v2/system/crls
Headers:
X-API-Key: <API Key>

Response:

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

Expected behavior
Response defined in api docs and not a HTTP 404 error.

Screenshots or Response
-/-

pfSense Version & Package Version:

  • pfSense Version: 2.7.2-RELEASE (amd64)
  • Package Version: pfSense REST API v2.0.0 for 2.7.2

Affected Endpoints:

  • URL: /api/v2/system/**
  • URL: /api/v2/user/**
  • URL: /api/v2/vpn/**

Additional context
-/-

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementIssues or PRs that enhance existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions