Config API v2 Endpoints
This feature was introduced in Hydrolix v6.2.
The v2 Config API shortens endpoint URLs by removing unnecessary path segments.
Changes in naming pattern⚓︎
The v1 endpoints URLs require clients to specify all IDs in a hierarchy for all operations, resulting in long URLs with unnecessary IDs.
The v2 endpoints
- Have shorter names
- Remove implicit and unnecessary relationships from URL path segments
- Require only the necessary IDs and accept them as HTTP body parameters
- Accompany the Config API support for multiple Organizations
Authorization mechanisms remain unchanged
See Authenication and Authorization, especially Acquire authorization tokens.
Conversion steps⚓︎
- Identify available v2 endpoints. See Endpoints table or Config API Openapi.
- Convert URL path segment parameters to HTTP body parameters
- Replace the v1 endpoint with a v2 endpoint.
Example transform create⚓︎
The transform create endpoint illustrates the benefits of the shorter URLs. This command demonstrates using a table with UUID bc6f6d63-a284-4685-a5cf-0544cccf6437.
A new transform, when created, must be attached to a table. The v2 endpoint allows simpler indication of the relationship.
- Endpoint is
/config/v2/transforms/ - Requires an HTTP body containing the transform
table,name,typeand all othersettings - OpenAPI description of Create transform v2
The implicitly related project and organization IDs aren't necessary to create the transform.
- Endpoint is
/config/v1/orgs/{org_id}/projects/{project_id}/tables/{table_id}/transforms/ - Requires
org_idas a path component - Requires
project_idas a path component - Requires
table_idas a path component - Requires an HTTP body with the transform
name,type, and all othersettings - Accepts and ignores
tableif supplied in the HTTP body - OpenAPI description of Create transform v1
Relevant payload contents⚓︎
Relevant Payload Contents
This fragmentary payload omits some details of transform settings to highlight the inclusion of table and other required parameters.
- The
tableparameter is required in transform creation v2 endpoints, and accepted and ignored in v1 endpoints, where thetableis expected in a path segment.
Full payload⚓︎
Full Payload Example Contents
This is a complete example of a payload used to create a new transform, whether with the v1 or v2 endpoints. See Transform structure for details.
- The
tableparameter is required in transform creation v2 endpoints, and accepted and ignored in v1 endpoints, where thetableis expected in a path segment.