- Design
- Runner
- Customer Auth
- Utility
- Warehouse
- Store
- Document
Get Schema
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
GET
/v1/rego/schemas/{name}/
Last modified:2024-11-25 05:16:31
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
name
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://preprod.api.crego.io/v1/rego/schemas//'
Responses
🟢200Success
application/json
Body
A versatile JSON Schema definition with metadata for describing object properties.
title
string
Schema Title
>= 1 characters
Examples:
Product SchemaUser Information Schema
description
string
Schema Description
>= 1 characters
Examples:
Schema for defining product details.Schema for capturing user information.
type
enum<string>
Schema Type
Allowed values:
objectarraystringnumberbooleannull
Example:
object
properties
object
Properties
Example:
{"name":{"type":"string","description":"User's full name"},"age":{"type":"integer","description":"User's age in years"}}
Additional properties
object
optional
required
array[string]
Required Fields
Example:
["name","age"]
enum
array[string]
Enumeration
>= 1 items
Example:
["value1","value2","value3"]
$schema
string
Schema Version
Example:
http://json-schema.org/draft-07/schema#
Example
{
"title": "Product Schema",
"description": "Schema for defining product details.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "User's full name"
},
"age": {
"type": "integer",
"description": "User's age in years"
}
},
"required": [
"name",
"age"
],
"enum": [
"value1",
"value2",
"value3"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}