Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Utility
  • Back to home
  • Flow
  • Design
    • Create Design
      POST
    • List Designs
      GET
    • Update Design
      PUT
    • Get Design
      GET
    • Mark as Current Design
      PUT
    • Duplicate Design
      POST
    • Get Expanded Design
      GET
    • Graph Validation
      GET
  • Runner
    • Create Runner
      POST
    • Execute Runner
      POST
    • Get Runner
      GET
    • List Runners
      GET
    • Runner Callback Handler
      POST
    • Runner activity
      GET
    • Runner Store
      GET
    • Update Runner design
      PUT
    • Update Store
      PUT
    • No Auth Runner Flow info
      GET
    • Parse Template
      POST
    • Get Current Nodes
      GET
  • Customer Auth
    • Refresh Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • Auth Ping
      GET
    • Exchange Token
      POST
  • Utility
    • Get Schema
      GET
  • Warehouse
  • Store
    • Get Store
    • List Store
    • Create Store
  • Document
    • Create Document
    • Get Storage Document
    • Add files to document
    • Download files
  1. Utility

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
optional
The human-readable title of the schema.
>= 1 characters
Examples:
Product SchemaUser Information Schema
description
string 
Schema Description
optional
A detailed description providing context or purpose for the schema.
>= 1 characters
Examples:
Schema for defining product details.Schema for capturing user information.
type
enum<string> 
Schema Type
required
The type of data structure represented by the schema.
Allowed values:
objectarraystringnumberbooleannull
Example:
object
properties
object 
Properties
optional
Defines the structure and constraints of properties for an object schema.
Example:
{"name":{"type":"string","description":"User's full name"},"age":{"type":"integer","description":"User's age in years"}}
Additional properties
object 
optional
Property definitions following the JSON Schema standard.
required
array[string]
Required Fields
optional
An array specifying the properties that are mandatory in the object.
Example:
["name","age"]
enum
array[string]
Enumeration
optional
Defines a set of permissible values for the schema.
>= 1 items
Example:
["value1","value2","value3"]
$schema
string 
Schema Version
optional
The version of the JSON Schema draft being used.
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#"
}
Previous
Exchange Token
Next
Get Store
Built with