UNPKG

loopback-connector-rest

Version:
92 lines (90 loc) 1.94 kB
{ "operations": [ { "template": { "method": "POST", "url": "{!url}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}", "body": "{body}" }, "functions": { "create": ["url", "body", "query"] } }, { "template": { "method": "PUT", "url": "{!url}/{!id}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}", "body": "{body}" }, "functions": { "update": ["url", "id", "body", "query"] } }, { "template": { "method": "DELETE", "url": "{!url}/{!id}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}" }, "functions": { "delete": ["url", "id", "query"] } }, { "template": { "method": "DELETE", "url": "{!url}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}" }, "functions": { "deleteAll": ["url", "query"] } }, { "template": { "method": "GET", "url": "{!url}/{!id}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}" }, "functions": { "find": ["url", "id", "query"] } }, { "template": { "method": "GET", "url": "{!url}", "headers": { "accept": "application/json", "content-type": "application/json" }, "query": "{query}" }, "functions": { "all": ["url", "query"] } } ] }