curl --request GET \
--url https://api.occtoo.com/v1/event-typesimport requests
url = "https://api.occtoo.com/v1/event-types"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.occtoo.com/v1/event-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.occtoo.com/v1/event-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/event-types"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/event-types")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/event-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"type": "source.updated",
"version": "1.0",
"description": "A source configuration changed.",
"schemaUrl": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"filterableProperties": [
"sourceId",
"subject"
],
"schema": {
"type": "object",
"properties": {
"sourceId": {
"type": "string",
"x-occtoo-filterable": true
},
"changes": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"change": {
"type": "string"
}
},
"required": [
"id",
"change"
]
},
"default": null
},
"correlationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"actor": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"required": [
"sourceId",
"changes",
"correlationIds"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"additionalProperties": true
}
}
]List public event types and schema versions
Returns the public event catalog. Each entry identifies a stable event type, its current payload schema version, the immutable JSON Schema URL, and the envelope subject and data properties accepted by the filter grammar.
Cache the catalog briefly and resolve payload contracts through schemaUrl. Event type names do not contain a schema version.
curl --request GET \
--url https://api.occtoo.com/v1/event-typesimport requests
url = "https://api.occtoo.com/v1/event-types"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.occtoo.com/v1/event-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.occtoo.com/v1/event-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/event-types"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/event-types")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/event-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"type": "source.updated",
"version": "1.0",
"description": "A source configuration changed.",
"schemaUrl": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"filterableProperties": [
"sourceId",
"subject"
],
"schema": {
"type": "object",
"properties": {
"sourceId": {
"type": "string",
"x-occtoo-filterable": true
},
"changes": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"change": {
"type": "string"
}
},
"required": [
"id",
"change"
]
},
"default": null
},
"correlationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"actor": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"required": [
"sourceId",
"changes",
"correlationIds"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"additionalProperties": true
}
}
]Response
The currently supported public event catalog.
Stable, unversioned CloudEvent type.
"source.updated"
Current payload JSON Schema version.
"1.0"
Human-readable event meaning.
"A source configuration changed."
Immutable URL used by the CloudEvent dataschema attribute.
Filterable data properties and the envelope subject for this type. Subject filtering applies only to events normalized after subject projection was enabled.
The current JSON Schema, included inline for discovery clients.
Was this page helpful?