Skip to content

Discussion: unified JSON REST-type api calls for page submissions #4774

@rhkean

Description

@rhkean

Is your feature request related to a problem? Please describe.
no... enhancement

Describe the solution you'd like
I'm currently working on a bluetooth (BLE) implementation that will enable WLED to connect via bluetooth in addition to wifi and eth. In looking over the architecture of the system and the WLED-native application, it seems that, if all of the pages used JSON (AJAX) calls for forms-submission, everything could then run purely through the JSON api.

I believe this could be implemented across all pages with a little effort to standardize the calls for existing pages and document the standardization for usermods.

I'd be willing to take the effort on if it the idea seems sound and would have the backing to implement into the core.

Describe alternatives you've considered
n/a

Additional context
The form submissions from the existing UI can be modified to implement an AJAX application/json POST to the JSON api to standardize submissions. This would also enable the POST to be intercepted on the phone (native app) and passed to a bluetooth connected device as JSON and internally processed by WLED's serial to JSON interface.

NOTE: I am currently working on the android modifications... There would be a learning curve for me to tackle the iOS modifications once the android side is complete. However, I don't mind taking that on or stepping back for someone else to do so.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions