Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubus scritps consistent interface #1136

Open
javierbrk opened this issue Nov 5, 2024 · 0 comments
Open

ubus scritps consistent interface #1136

javierbrk opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@javierbrk
Copy link
Collaborator

Many RPC scripts used with UBUS lack a consistent interface, leading to discrepancies between different modules. It would be beneficial to establish a uniform interface, as proposed here, along with helper functions in both Bash and Lua. This would facilitate the development of scripts and ensure they can be easily utilized by the Lime app in a practical manner.

{
  "status": "success",
  "data": {
    "currentPage": 1,
    "totalPages": 5,
    "totalItems": 100,
    "itemsPerPage": 20
  },
  "message": "Items retrieved successfully."
}


{
  "status": "error",
  "message": "Item not found.",
  "errorCode": 404
}

It is important to note that this should be a coordinated effort between lime-app and lime-packages. Error codes can be lime-app translatable messages.

@javierbrk javierbrk self-assigned this Nov 5, 2024
@javierbrk javierbrk changed the title ubus scritps omogeneus interface ubus scritps consistent interface Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant