Seeking advice regarding API for using WP & Nuxt to create headless ecommerce site

[ad_1]

Hi everyone,

I’m currently building a headless ecommerce site for a client using WP and Nuxt. The wordpress site is already live, I’m supposed to build a better UI version of it in Nuxt with the same functionalities of WP.

Now, I’m a bit torn on the API arch to use. I see WordPress comes with REST Api out of the box, but it seems to me GraphQL is the better choice in the long run.

That being said, I’m confused about getting certain data too. For example, the links in header & footer. I don’t see in the docs how to fetch them dynamically from wordpress.

So, I wanted to know how other developers have approached this sort of application and what’s your preference in general in terms of tooling, setup, API etc. to build a headless WordPress / Nuxt ecommerce site?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer