'SPA communication describing document

I'm trying to write an internal document on SPA communication between the frontend and serverside of the application. As our team is split into two groups focusing on different parts of the application I would like to write a simple document explaining best practices and principles on how we exchange data. I'm sure that this is not a new task in the industry, but I can't find any example of such document. Maybe someone could direct me to one.

If I have to write one from the beginning I think it would include paragraphs about endpoint structure, response objects, CRUD operations, validation errors, etc. I'd like to follow common industry best practices without reinventing the wheel so that new employees could onboard as fast as possible.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source