Writing SynapseRESTAdaptor