[API Request] Support JSON post for new endpoints ? #110
Replies: 5 comments 5 replies
-
Yes |
Beta Was this translation helpful? Give feedback.
-
I have no objections. One pain point in the original Subsonic API is how the list type parameters are handled, e.g. Stating the obvious, we then need to make sure that the supported JSON contents are very clearly documented, e.g. which properties as mandatory and which are optional and what are the data types of each property. |
Beta Was this translation helpful? Give feedback.
-
@opensubsonic/servers @opensubsonic/clients This is the first step to move on new endpoints please take time to write a simple yes or no with some details. |
Beta Was this translation helpful? Give feedback.
-
Yes. As a consumer of the API I welcome any change that makes it simpler to use. |
Beta Was this translation helpful? Give feedback.
-
Yes, for new endpoints. But IMO we should require a proper JSONSchema or OpenAPI definition doc when introducing the new endpoints, to avoid us getting to the same state we are with the old ones. |
Beta Was this translation helpful? Give feedback.
-
Type of change
API tweak
Proposal description
This is just as starting discussion to evaluate if servers / clients would embrace supporting posting JSON for some new endpoints.
This would simplify the definition of complex new APIs like transcoding profiles and filtering, multi sorting and everything we could do with the getAllXXX endpoints for example.
Backward compatibility impact
No response
Backward compatibility
API details
Allowing some endpoints to support posting a JSON instead of a very long and complex parameter list that would require specific encoding if we need to pass complex objects in them.
Security impacts
No response
Potential issues
No response
Alternative solutions
No response
Beta Was this translation helpful? Give feedback.
All reactions