3

When do the front-end developers get the APIs.?

How does the communication between front-end and back-end works.?

I work in a startup and I'm getting the feeling that this communication is way off the place. Many-ier times we have to wait for weeks for the API to come. Till then, we build mock data structures and implement it. The API gives us more and less exactly what we need. And you can guess it sometimes the structure gets changed in such a way our front end code gets to be refactored.

Is it the correct way.? The whole mock data structures and wait for the API thing. One of my colleagues says, "It's much better if we get some part of API first and integrate it progressively".

Comments
  • 2
    Both have benefits.as frontend dev you dont want to run your own server and you also dont want to be dependent on internet. having mocked data means you can work everywhere without an internet connection.

    But having the API means you know how to write the mock. A backend dev can decide what the most efficient datastructure is.

    Most optimal is if the backend already has a database and writes API documentation of which frontenders can use to mock things with.
  • 1
    They should document what the api should return in a specific structure so that you can work on stuff at the same time and have the same expectations of that which connects your work
Add Comment