I´m making a translator app for phrases using Wagtail and Vue. For this purpose I registered the phrases model to Waigtail admin ( using ModelAdmin ) so Editors can add new data sets in the admin tool. Now I have to create the API so the Frontend can get the phrases. But here comes the problem. I can´t find a way to create the API for the phrases. In my understanding theres obviously a necessity for a APIViewSet for ModelAdmin but regarding to the docs theres only PagesAPIViewSet, ImagesAPIViewSet and DocumentsAPIViewSet. I´m a bit confused because it is not a exotic case.
I´m thinking about making a new django app for the phrases API with its own database but I can´t imagine it´s meant to be done like that.
I solved it now. It works well. Instructions are:
Now you can do CRUD for database entries ( in my case phrases ) either with the rest api or with wagtail cms. Leave comment if anything is not clear.