Generations

Retrieve a generation

Includes the generated files when the generation succeeded.

GET
/generations/{generation_id}

Includes the generated files when the generation succeeded.

AuthorizationBearer <token>

API key from the console, ak_....

In: header

Path Parameters

generation_id*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/generations/string"
{  "id": "string",  "object": "generation",  "files_omitted": true,  "files_index": [    {      "path": "string",      "bytes": 0    }  ],  "project_id": "string",  "status": "succeeded",  "trigger": "manual",  "language": "typescript",  "meta": {    "title": "string",    "version": "string",    "spec_format": "openapi",    "oas_version": "string",    "converted": true,    "package_name": "string",    "client_name": "string",    "targets": [      "sdk"    ],    "resource_count": 0,    "operation_count": 0,    "schema_count": 0,    "paginated_operation_count": 0,    "omitted_operation_count": 0,    "pr_url": "string",    "pr_number": 0,    "changelog": "string",    "breaking_count": 0,    "baseline": "destination",    "semver": "success",    "semver_note": "string",    "previous_version": "string",    "file_count": 0,    "total_lines": 0  },  "warnings": [    "string"  ],  "files": [    {      "path": "string",      "content": "string"    }  ],  "error": "string",  "created_at": "2019-08-24T14:15:22Z"}