Get in-memory decorator registries
Admin-only debug endpoint that returns the current state of the in-memory decorator registries (routes registered by @Route, event handlers registered by @EventHandler, and projectors registered via registerProjector). Useful for verifying decorator pickup at runtime — e.g. to confirm a refactor did not silently drop routes. Requires dual authentication (X-Admin-API-Key + JWT with @smartphonekey.com email domain), same as /admin/cleanup/*.
curl -X GET "https://api.spkey.co/admin/debug/registry" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://api.spkey.co/admin/debug/registry"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.spkey.co/admin/debug/registry", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.spkey.co/admin/debug/registry", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.spkey.co/admin/debug/registry')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"routes": [
{
"method": "example_string",
"path": "example_string",
"className": "John Doe",
"aggregateType": "example_string",
"isCreateCommand": true
}
],
"eventHandlers": [
{
"key": "example_string",
"eventType": "example_string",
"aggregateType": "example_string",
"className": "John Doe"
}
],
"projectors": [
{
"id": "example_string",
"className": "John Doe"
}
],
"summary": {
"routeCount": 10,
"eventHandlerCount": 10,
"projectorCount": 10
}
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
GET
/admin/debug/registry
GET
Base URLstring
Target server for requests. Edit to use your own host.
⚠️Authentication configuration error - security schemes not found
Request Preview
Response
Response will appear here after sending the request
Responses
routesarray
Requiredmethodstring
Requiredpathstring
RequiredclassNamestring
RequiredaggregateTypestring
isCreateCommandboolean
eventHandlersarray
Requiredkeystring
RequiredeventTypestring
RequiredaggregateTypestring
RequiredclassNamestring
Requiredprojectorsarray
Requiredidstring
RequiredclassNamestring
Requiredsummaryobject
RequiredrouteCountinteger
RequiredeventHandlerCountinteger
RequiredprojectorCountinteger
Requiredsuccessboolean
Requirederrorstring
Requiredmessagestring
Requiredsuccessboolean
Requirederrorstring
Requiredmessagestring
RequiredWas this page helpful?