Querying for a single record by ID

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsQuerying for a single record by ID
(Created page with "### Tutorial Query a SQL or NoSQL database for a record by ID. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL....")
Line 5: Line 5:
 
### API Endpoint
 
### API Endpoint
  
<pre>GET https://your-url/api/v2/your-api-name/_table/{table_name}/id
+
<pre>GET https://your-url/api/v2/your-api-name/_table/{table_name}/id</pre>
  
 
### API Docs Screenshot
 
### API Docs Screenshot

Revision as of 22:33, 21 September 2015

      1. Tutorial

Query a SQL or NoSQL database for a record by ID. 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://your-url/api/v2/your-api-name/_table/{table_name}/id
      1. API Docs Screenshot

Swagger-id.png

      1. Example - Fetch contact record with ID 1
  • Table name: contact
  • IDs parameter in API call:
    1
  • Request URL:
    https://your-url/api/v2/db/_table/contact/1