Skip to content

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

Description

@henryk86

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?

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