Usage
API design
SpreadAPI has to deal with limitations imposed by the Google Apps Script engine. There are two limitations that make running a state-of-art REST API impossible in this environment:
Each script can respond only on one hardcoded URL. It can't handle request comming at subpaths like /users or /transactions/15.
Only GET and POST methods are supported.
Due to the these limitations the SpreadAPI script handles only POST requests on a single URL. The actual HTTP method and resource path are provided in request body as shown in the example below:
Other parameters (like payload for POST and PUT requests) are provided as additional fields in the request body:
Last updated