This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So normally in development you'd have a development server with trivial data with a /GET OR /POST API route to test am I right? This is what I am used to but ..when I got hired at my new company.. I noticed that there is no actual /GET OR /POST OR ANY API routes at all. We have NO access to a development server. This application was built in 2007 and so I was told that is the only way they could test data back in the day. When we start on a new feature WE the front end are asked to create a large mock json file so backend can write a script to replicate it..it is so annoying. I feel as though, backend should be coming up with the data sets and not the front end but whatever. Essentially I am reading json responses over http for everything. So you may ask, well how does the data get shown in production? We'll we use /mock.json files (POST req) to (GET & POST OUR DATA..I know weird because technically POST returns data) & in production, we have a java engineer who runs a java .do script that switches our /mock.json over to a real /post API route automatically when he runs his server. I'm sorry. I know this all seems super confusing, well it is because it is. The issue is, that I can never test data in real-time. I have to wait til pre-prod is up & we go back and manually test what went wrong with our mock.json files. Is this normal? (BTW WE HAVE NO UNIT TEST IMPLEMENTATION, WE FETCH MOCK JSON FOR GENERAL USE & NOT UNIT TEST)
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/webdev/comm...