Skip to content

Commit 30e577b

Browse files
Update api spec (#220)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 884085a commit 30e577b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples_test.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kittycad.go.patch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
},
162162
{
163163
"value": {
164-
"example": "// CreateConversionOptions: Convert CAD file from one format to another.\n// \n// This takes a HTTP multipart body with these fields in this order: 1. The input format, with options (as JSON) 2. The output format, with options (as JSON) 3. The main file, in raw binary (in whatever format you specified in field (1) i.e. input format) 4. Any additional files\n// \n// This starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.\n// \n// \n// Parameters\n// \n// \t- `body`: Describes the file to convert (src) and what it should be converted into (output).\n// \n// CreateConversionOptions: Convert CAD file from one format to another.\n// This takes a HTTP multipart body with these fields in this order: 1. The input format, with options (as JSON) 2. The output format, with options (as JSON) 3. The main file, in raw binary (in whatever format you specified in field (1) i.e. input format) 4. Any additional files\n//\n// This starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.\n//\n// Parameters\n//\n// - `body`: Describes the file to convert (src) and what it should be converted into (output).\nfunc ExampleFileService_CreateConversionOptions() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tbuf := new(bytes.Buffer)\n\n\tresult, err := client.File.CreateConversionOptions(buf)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
164+
"example": "// CreateConversionOptions: Convert CAD file from one format to another.\n// \n// This takes a HTTP multipart body with these fields in any order:\n// \n// - The input and output format options (as JSON), name is 'body'. - The files to convert, in raw binary. Must supply filenames.\n// \n// This starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.\n// \n// \n// Parameters\n// \n// \t- `body`: Describes the file to convert (src) and what it should be converted into (output).\n// \n// CreateConversionOptions: Convert CAD file from one format to another.\n// This takes a HTTP multipart body with these fields in any order:\n//\n// - The input and output format options (as JSON), name is 'body'. - The files to convert, in raw binary. Must supply filenames.\n//\n// This starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.\n//\n// Parameters\n//\n// - `body`: Describes the file to convert (src) and what it should be converted into (output).\nfunc ExampleFileService_CreateConversionOptions() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tbuf := new(bytes.Buffer)\n\n\tresult, err := client.File.CreateConversionOptions(buf)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
165165
"libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#FileService.CreateConversionOptions"
166166
},
167167
"op": "add",

paths.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@
22762276
"file"
22772277
],
22782278
"summary": "Convert CAD file from one format to another.",
2279-
"description": "This takes a HTTP multipart body with these fields in this order: 1. The input format, with options (as JSON) 2. The output format, with options (as JSON) 3. The main file, in raw binary (in whatever format you specified in field (1) i.e. input format) 4. Any additional files\n\nThis starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
2279+
"description": "This takes a HTTP multipart body with these fields in any order:\n\n - The input and output format options (as JSON), name is 'body'. - The files to convert, in raw binary. Must supply filenames.\n\nThis starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.",
22802280
"operationId": "create_file_conversion_options",
22812281
"requestBody": {
22822282
"description": "Convert files to other formats",

0 commit comments

Comments
 (0)