Skip to content

Commit 140da9b

Browse files
Update api spec (#212)
* 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 6596522 commit 140da9b

File tree

5 files changed

+645
-518
lines changed

5 files changed

+645
-518
lines changed

examples_test.go

Lines changed: 7 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
@@ -249,7 +249,7 @@
249249
},
250250
{
251251
"value": {
252-
"example": "// CreateProprietaryToKcl: Converts a proprietary CAD format to KCL.\n// \n// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n// \n// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n// \n// \n// Parameters\n// \n// \t- `body`\n// \n// CreateProprietaryToKcl: Converts a proprietary CAD format to KCL.\n// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n//\n// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n//\n// Parameters\n//\n// - `body`\nfunc ExampleMlService_CreateProprietaryToKcl() {\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.Ml.CreateProprietaryToKcl(buf)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
252+
"example": "// CreateProprietaryToKcl: Converts a proprietary CAD format to KCL.\n// \n// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n// \n// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n// \n// \n// Parameters\n// \n// \t- `codeOption`: Code option for running and verifying kcl.\n// \t\t\n// \t\t\u003cdetails\u003e\u003csummary\u003eJSON schema\u003c/summary\u003e\n// \t\t\n// \t\t```json { \"title\": \"CodeOption\", \"description\": \"Code option for running and verifying kcl.\", \"type\": \"string\", \"enum\": [ \"parse\", \"execute\", \"cleanup\", \"mock_execute\" ] } ``` \u003c/details\u003e\n// \t- `body`\n// \n// CreateProprietaryToKcl: Converts a proprietary CAD format to KCL.\n// This endpoint is used to convert a proprietary CAD format to KCL. The file passed MUST have feature tree data.\n//\n// A STEP file does not have feature tree data, so it will not work. A sldprt file does have feature tree data, so it will work.\n//\n// Parameters\n//\n// - `codeOption`: Code option for running and verifying kcl.\n//\n// \u003cdetails\u003e\u003csummary\u003eJSON schema\u003c/summary\u003e\n//\n// ```json { \"title\": \"CodeOption\", \"description\": \"Code option for running and verifying kcl.\", \"type\": \"string\", \"enum\": [ \"parse\", \"execute\", \"cleanup\", \"mock_execute\" ] } ``` \u003c/details\u003e\n//\n// - `body`\nfunc ExampleMlService_CreateProprietaryToKcl() {\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.Ml.CreateProprietaryToKcl(kittycad.CodeOptionParse, buf)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
253253
"libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#MlService.CreateProprietaryToKcl"
254254
},
255255
"op": "add",

paths.go

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

0 commit comments

Comments
 (0)