The statement “I do not want to use Views or View Models in my DXA web app” sounds like a contradiction, since MVC Architecture is at the heart of DXA. If you really don’t want to use either, it sounds like you don’t want to use DXA.
However, maybe you do want to use View Models, but don’t want to use server-side rendering, so no server-side Views?
Such a configuration is possible in DXA:
- A DXA Web app can serve the raw data of the View Model in JSON format (try suffixing the URL with
- If you only request the View Model JSON, you don’t need (server-side) Views in your web app
- However, DXA’s View Model mapping works through View names. So, you will still have do define (virtual) View names, but those Views don’t have to actually exist.