Calling SQL functions

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsCalling SQL functions
(Created page with "### Tutorial GET data form a SQL function. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL. ### API Endpoint <...")
Line 11: Line 11:
 
[[File:Swagger-function.png|1000px]]
 
[[File:Swagger-function.png|1000px]]
  
### Example - GET data from a stored procedure
+
### Example - GET data from a SQL function
  
 
* Stored procedure name: my_function
 
* Stored procedure name: my_function
 
* Function_name parameter in API call:<pre>my_function</pre>
 
* Function_name parameter in API call:<pre>my_function</pre>
 
* Request URL: <pre>https://foo.com/api/v2/db/_func/my_function</pre>
 
* Request URL: <pre>https://foo.com/api/v2/db/_func/my_function</pre>

Revision as of 22:25, 15 October 2015

      1. Tutorial

GET data form a SQL function. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL.

      1. API Endpoint
GET https://{url}/api/v2/{api_name}/_func/{function_name}
      1. API Docs Screenshot

Swagger-function.png

      1. Example - GET data from a SQL function
  • Stored procedure name: my_function
  • Function_name parameter in API call:
    my_function
  • Request URL:
    https://foo.com/api/v2/db/_func/my_function