BrAPI
BrAPI copied to clipboard
POST /seasons lets the user set the seasonDbId?
In endpoint POST /seasons the Body is structured like this:
[
{
"seasonDbId": "Spring_2018",
"seasonName": "Spring",
"year": 2018
}
]
This allows the user to set the seasonDbId. Shouldn't this be:
[
{
"seasonName": "Spring",
"year": 2018
}
]
Then the server could decide what the DbId is and either you the concatenation of seasonName and year or another value
I completely agree, that is how it should work...
In this case, there was an issue where systems were ONLY using the single value seasonDbId
to document their seasons. This meant they could not POST a new season without being able to submit the DbId.
Some of the discussion happened in issue #434, some of it was in person during a hackathon