Skip to content

Conversation

@ac000
Copy link
Owner

@ac000 ac000 commented Apr 30, 2025

  • Fix some endpoint URLs
  • Flow the called endpoint enum as a string through to the returned JSON

ac000 added 3 commits April 30, 2025 04:58
Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
This maps the mtd_api_endpoint enums to strings. E.g.

  MTD_API_EP_BD_LIST => "MTD_API_EP_BD_LIST"

This will be used to add extra useful information to the returned JSON.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
This builds on the previous commit to add an entry to the returned JSON
like

        "libmtdac_endpoint": "MTD_API_EP_ISI_SI_UK_LIST",

This can aid in debugging to see at a quick glance exactly what endpoint
was called.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
@ac000 ac000 merged commit 4214dc7 into master Apr 30, 2025
8 checks passed
@ac000 ac000 deleted the ep branch April 30, 2025 04:01
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