'How do I write a service layer specification?

I'm currently building a frontend prototype for a web application, and soon the backend programmers are going to start building the service layer. They've asked me to write a simple specification of the data formats I want from the various services along with possible parameters etc.

Are there any standard way of writing or structuring such specs? Can anyone give an example?

PS: All the service requests will be done in Javascript asynchronously.



Sources

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

Source: Stack Overflow

Solution Source