Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.27 KB

File metadata and controls

25 lines (15 loc) · 1.27 KB

Eclipse Ditto Generator

Overview

This generator features

  • JSON Schema files for validating feature properties and feature messages of Things managed by Eclipse Ditto. To generate the JSON Schema files the request parameter target=jsonSchema has to be used. You can optionally use the online tool JSON Schema Faker in order to generate example JSON content after JSON Schema was generated by this generator.
  • Thing JSON structure for creating a Thing in Eclipse Ditto. This JSON can be sent to Ditto to create a Thing. To generate the Thing JSON the request parameter target=thingJson has to be used. For usage refer to the Eclipse Ditto HTTP API documentation.

The request parameter "target" is mandatory. It can have the value jsonSchema or thingJson.

Example Usage

The following curl commands show, how you can invoke the Eclipse Ditto Generator

JSON Schema:

curl -GET https://vorto.eclipseprojects.io/api/v1/generators/eclipseditto/models/com.ipso.smartobjects.Load_Control:1.1.0?target=jsonSchema

Thing JSON:

curl -GET https://vorto.eclipseprojects.io/api/v1/generators/eclipseditto/models/com.ipso.smartobjects.Load_Control:1.1.0?target=thingJson