'How to register/login user in wagtail by uing api.V2
I want to register new user/ login user in wagtail website by api.V2. Because I want to use react as frontend. How to do it.?
Solution 1:[1]
Wagtail's API is documented as:
The Wagtail API module exposes a public, read only, JSON-formatted API which can be used by external clients (such as a mobile app) or the site’s frontend.
https://docs.wagtail.org/en/stable/advanced_topics/api/v2/usage.html
This means that the API is not mutable, and public, it does not provide any authentication or write (POST) functionality.
If you wish to request this feature may I recommend you raise an issue on the Wagtail repository.
There may be third party packages that provide this functionality though, alternatively you could explore building what you need with the included Django Rest Framework.
If you want to read more on how to build a SPA (single page app) with Wagtail, here are some resources:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | LB Ben Johnston |
