S
S
Samanta-Smith2020-01-23 06:21:59
Django
Samanta-Smith, 2020-01-23 06:21:59

I don’t understand what the employer wants, how to implement fronted via api?

I apologize in advance for the obviousness of the question, but time is running out. The terms of reference say:
"The application once every N minutes requests a list of vacancies that service A provides and saves the id ,
title , state , owner fields for new vacancies. If the vacancy object already exists in the application database, then it is
necessary to synchronize the status. If in the received list does not contain a previously synchronized
vacancy, its status is changed to ARCHIVE .The
application has its own API, through which the front-end receives a list of synchronized vacancies
with the ability to filter by status and owner.By default, a list of
synchronized vacancies is displayed with all statuses except ARCHIVE . archived vacancies
view by applying a filter. The displayed list is updated without reloading the page."
How exactly to output data to the front using api? Here is my rest 5e2910ae87527275391386.png
Do I understand correctly that I do not need to render the html template? How can I start the front then? A quick search of the search engine did not give anything. Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-01-23
@Samanta-Smith

You understand correctly, you don't need to render the html template. It is necessary for the web server to send front statics from the root URL, and the javascript code of this front will pull the endpoints of your API.

A
Alexander, 2020-01-23
@NeiroNx

This means that the data is loaded via AJAX using parameters for filtering. The template contains a page skeleton with an empty data block and the necessary scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question