Skip to content

Add proper JSON output to all API endpoints #92

Description

@samcorky

Currently, there are a handful of API endpoints that return a value that is not a JSON array or a JSON object. They return just a string.
/api/version
/api/hostname
/api/wlan/mac

Also, /api/reset doesn't return any response or response code!
I would expect this to return a 202 Accepted HTTP code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomersrefactorRequires refactoring or adjusting existing code

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions