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

Feature: API to extend Tonies.custom.json #176

Open
henryk86 opened this issue May 22, 2024 · 0 comments
Open

Feature: API to extend Tonies.custom.json #176

henryk86 opened this issue May 22, 2024 · 0 comments

Comments

@henryk86
Copy link
Sponsor

I need an API endpoint to add new entries to the tonies.custom.json (and later on to edit existing entries)

currently i can pass the following information to the API:

{
"series": "SeriesEntry",
"episode": "EpisodeEntry",
"language": "en-gb",
"article": "CUST-00-123",
"image": "http://abc.de/ef.jpg",
"ids": [
{
"audio-id": "2345234",
"hash": "2345cqef243d5d3dcc24v234td234xc4rc3"
}
],
"track-desc": [
"track 1",
"track 2"
]
}

Open questions:

  • how to handle edit of existing entries? Just send the same and if there is an entry with the given article update that article? How to ensure, that this did not happen accidentually? Maybe add a flag "update"? If this is not set and someone tries to save a new model with an existing article number, then there is an error message returned and the user has to set the update flag in the form before sending it again?
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

No branches or pull requests

1 participant