L
L
Lopus2020-09-02 11:56:50
API
Lopus, 2020-09-02 11:56:50

How to organize the work of website layout with API service?

There is an API that gives data in the form of json objects for applications and third-party services.
Now you need to develop a site, the server component of which is in the same API scripts. Just different controllers for the site.
You can use some library and load each block of the main page separately through your access point. And then, the api response to convert the data to html and lay it out in the right parts of the site? How do search engines deal with this?
Or is it better for the site to write its own controllers in api, which will return the entire html document (for the main page, for the product catalog, for the list of news)?
Maybe some other approaches are currently being used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2020-09-02
@SilenceOfWinter

top search engines have long made friends with js/ajax and in general their algorithms have changed: context is nothing, hype is everything. for reinsurance, you can implement Yandex / Google quick pages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question