I was recently (for about half year) creating REST API based web pages for my client. Mostly using:
but suddenly client decided that he don't want REST API based websites any more because all of them are not so much optimized for web search engines and he cannot find them as easily as the old "traditionally created" websites. Previously I was using Zend Framework or Word-press.
RESTFul apps are so much popular nowadays that I think I must do something wrong.
The architecture of my applications looks like this:
- User loads the web app in the browser.
- User requests to open list of items - let's say for example list of books.
- The front end loads the data using REST API (taking the JSON) and displays the data in container.
- User clicks on the item/book.
- Front end takes the JSON data from REST API and displays it in container.
So the front end and the REST API back end are completely separate things living their own life. Is that correct approach?
I noticed that the application, for example created in ReactJS has almost nothing in the source in web browser, all the code generation is embeded in js script. Can that have an impact on the SEO? Below example code.
Is there any way to make REST API based webs better for SEO? Or eventually are there any good practices which I should follow to make rest apps SEO friendly?