Skip to content

Add proper JSON output to all API endpoints #92

@samcorky

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

Sub-issues

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