All URIs are relative to https://api.konfigthis.com
Method | HTTP request | Description |
---|---|---|
formatPython | POST /formatPython | Format Python Code |
generate | POST /generate | Generate SDKs |
Python formatter using the black package
import { Konfig } from "konfig-typescript-sdk";
const konfig = new Konfig({
// Defining the base path is optional and defaults to https://api.konfigthis.com
// basePath: "https://api.konfigthis.com",
});
const formatPythonResponse = await konfig.sdk.formatPython("example_string");
console.log(formatPythonResponse);
Name | Type | Description | Notes |
---|---|---|---|
body | string |
string
- Content-Type: text/plain
- Accept: text/plain
Status code | Description | Response headers |
---|---|---|
200 | Status | - |
[Back to top] [Back to API list] [Back to README]
Generate SDKs and receive signed S3 download URLs for the generated packages
import { Konfig } from "konfig-typescript-sdk";
const konfig = new Konfig({
// Defining the base path is optional and defaults to https://api.konfigthis.com
// basePath: "https://api.konfigthis.com",
authorization: "API_KEY",
session: "API_KEY",
});
const generateResponse = await konfig.sdk.generate({
spec: "spec_example",
konfig_yaml: "konfig_yaml_example",
generators: {},
take_first_tag: true,
remove_default_array_values: true,
convert_array_data_types_to_any: false,
});
console.log(generateResponse);
Name | Type | Description | Notes |
---|---|---|---|
generateRequestBody | GenerateRequestBody |
GenerateResponseBody
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Generated SDKs | - |