All endpoints
JSON to Model Class
POST
/api/v1/tools/json-to-modelGenerate C#, Java or Python model classes from a JSON sample.
Authentication
Requires an API key in the X-API-Key header.
Try it
POST
/api/v1/tools/json-to-modelParameters
jsonstringrequiredJSON to generate a model from.
rootNamestringoptionalRoot type name. Default Root.
languagestringoptionalTarget language. Default csharp.
csharpjavapythonRequest body
{
"json": "{\"name\":\"Ada\",\"age\":36}",
"rootName": "Person",
"language": "csharp"
}Response codes
200Success.400Invalid request — check your body or parameters.401Missing or invalid API key.403The API key is not scoped to this endpoint.429Rate limit exceeded — retry after a short wait.
Language
cURL
Request
curl -X POST https://utilerio.com/api/v1/tools/json-to-model \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"Ada\",\"age\":36}","rootName":"Person","language":"csharp"}'Response
{ "output": "using System.Collections.Generic;\n\npublic class Person\n{\n public string Name { get; set; }\n public int Age { get; set; }\n}" }
