http://localhost:8082.
POST /schemas
Create a new schema. Devset supports two schema types:json for JSON Schema documents and protobuf for Protocol Buffer definitions.
string
required
A unique identifier for this schema, such as
order-created or payment-processed.integer
A numeric version for this schema, such as
1 or 2.string
required
The schema format. Accepted values:
json, protobuf.object | string
required
The schema definition. For
json, provide a JSON Schema object. For protobuf, provide the raw .proto file content as a string.string
Protobuf only. A Base64-encoded
FileDescriptorSet binary. Provide this when your .proto file imports other files and you want Devset to resolve them offline.string
Protobuf only. The fully-qualified name of the root message type to use for deserialization, such as
com.example.OrderCreated.- JSON Schema
- Protobuf
Request example
string
The identifier of the newly created schema.
integer
The version number that was stored.
string
The schema format:
json or protobuf.object | string
The stored schema definition.
GET /schemas
List all schemas registered in Devset. The response contains summary information for each schema, including its full definition. Response — 200 OKstring
The unique schema identifier.
integer
The version number for this schema.
string
The schema format:
json or protobuf.object | string
The schema definition.
string | null
Protobuf only. The Base64-encoded
FileDescriptorSet, if one was provided.string | null
Protobuf only. The fully-qualified root message name, if one was provided.
PUT /schemas/
Replace an existing schema entirely. You must provide the full schema body — partial updates are not supported. Devset overwrites the stored definition and returns the updated schema. Path parametersstring
required
The
id of the schema to replace.string
required
Must match the
schemaId path parameter.integer
The updated version number.
string
required
The schema format:
json or protobuf.object | string
required
The updated schema definition.
string
Protobuf only. Updated Base64-encoded
FileDescriptorSet.string
Protobuf only. Updated root message type name.
DELETE /schemas/
Permanently delete a schema. This cannot be undone. Path parametersstring
required
The
id of the schema to delete.204 No Content response confirms successful deletion.