Codewerk
openapi ts client
Types come from openapi-typescript 7.13.0 (paths, components, operations). On top, a dependency-free client class is generated with one async method per operation (operationId in camelCase, otherwise method + path segments): typed path/query/header parameters, JSON request bodies and a union of the JSON 2xx response types. The complete file is type-checked in memory with the TypeScript 5.9.3 compiler (strict); the result and any diagnostics are returned. Query arrays use form/explode style;.
POST https://code.halowerk.com/v1/openapi-ts-clientInputs
| Field | Type | Required | Description |
|---|---|---|---|
| spec | See schema | Yes | The API description as a JSON object or as a JSON/YAML string (max. 2 MB). External $ref values are rejected. |
| client_name | string | No | Name of the generated client class. |
| type_check | boolean | No | Type-check the generated file with the TypeScript compiler. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"spec"
],
"properties": {
"spec": {
"description": "The API description as a JSON object or as a JSON/YAML string (max. 2 MB). External $ref values are rejected.",
"anyOf": [
{
"type": "object"
},
{
"type": "string",
"minLength": 2,
"maxLength": 2000000
}
]
},
"client_name": {
"type": "string",
"pattern": "^[A-Z][A-Za-z0-9_]{0,63}$",
"default": "ApiClient",
"description": "Name of the generated client class."
},
"type_check": {
"type": "boolean",
"default": true,
"description": "Type-check the generated file with the TypeScript compiler."
}
}
}Published input example
{
"spec": {
"openapi": "3.0.3",
"info": {
"title": "Pets",
"version": "1.0.0"
},
"servers": [
{
"url": "https://halowerk.com/"
}
],
"paths": {
"/pets/{id}": {
"get": {
"operationId": "getPet",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "The pet",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea