-
Notifications
You must be signed in to change notification settings - Fork 0
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
no methods for status change #1
Comments
I updated the flow now, You will only have one endpoint that will handle the automatic transition, you just need to send what status you want in the post method like {"status": "Live"}, I'll update docs as well tomorrow. |
Multiple endpoints cause issues when integrating on frontend and application because they need to also handle which endpoint they need to call on which status. so now just only one endpoint is enough for everything. |
probably i was not clear into the explaination: models.py: class PostStatusChoices(models.TextChoices): class Client(models.Model): views.py class ClientViewSet(FsmViewSetMixin, ModelViewSet): urls.py router = routers.DefaultRouter() urlpatterns = [ i don't see the status change endpoint into the swagger interface. |
You will see one endpoint now. Check status related endpoint |
Using the provided tutorial and drf-spectacular as swagger layer, i don' see any endpoint about state change
drf-fsm = 1.0.4
django = 4.0.6
The text was updated successfully, but these errors were encountered: