Config API v2 Endpoints
This feature was introduced in Hydrolix v6.2.
The Config API supports versioned endpoints. The v2 version of the API
- is the recommended version for use in Hydrolix v6.4 and later.
- supports all operations present in the v1 endpoints, with small calling convention changes described in Config API v2 Endpoints.
- changes endpoints by removing unnecessary path segments, making the URLs shorter.
- receives all future development effort.
Use the v2 endpoints in all application development
The v1 endpoints remain available and usable after the release of Hydrolix v6.4, but don't support some newer features.
Changes in naming pattern⚓︎
The v1 endpoint URLs required 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 each v2 endpoint corresponding to the v1 endpoint in use. See Endpoints table or Config API Openapi.
- Convert URL path segment parameters to HTTP body parameters, if the calling convention has changed. See Example transform create.
- 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.