Skip to content

Improvement/futureapisupport#3

Open
kiddigital wants to merge 2 commits intodomoticz:masterfrom
kiddigital:improvement/futureapisupport
Open

Improvement/futureapisupport#3
kiddigital wants to merge 2 commits intodomoticz:masterfrom
kiddigital:improvement/futureapisupport

Conversation

@kiddigital
Copy link
Copy Markdown

Two items:

  • Ensure that 500 Internal Server Error is returned when page handling fails
  • Allow for a second API endpoint next to '/json.htm' which starts with '/api/'.
    So a single '/api' PageCode can handle proper REST calls where resources are in the path and parameters are only for filtering, sorting, etc. not identity
    (See WIP at https://github.com/kiddigital/domoticz/tree/feature/openapi-devices)

Alternative to the currently hard-coded API endpoint(s) is to allow to register them dynamically and set both extension and request_path accordingly.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant