You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current /docs API documentation system there is no way to display "textual enum values" instead their numeric representation.
Others struggled on it a lot but is not solvable quickly.
Instead of this, we can use help_text for these "choice" fields and create an API endpoint to show them all.
So, the first step is to create the API endpoint with the value-label pairs. It is usable for other purposes also. Maybe something similar to /api/v2/disaster_type , but using multiple choice lists.
In the current /docs API documentation system there is no way to display "textual enum values" instead their numeric representation.
Others struggled on it a lot but is not solvable quickly.
Instead of this, we can use help_text for these "choice" fields and create an API endpoint to show them all.
So, the first step is to create the API endpoint with the value-label pairs. It is usable for other purposes also. Maybe something similar to /api/v2/disaster_type , but using multiple choice lists.
@batpad @thenav56 @tovari
The text was updated successfully, but these errors were encountered: