service-search
InvokeSearch the service catalog and summarise the most relevant matches.
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"query": {
"description": "Keywords to search for inside the service catalog.",
"type": "string",
"minLength": 1
},
"url": {
"description": "Override base search API URL.",
"type": "string",
"format": "uri"
},
"network": {
"type": "string"
},
"asset": {
"type": "string"
},
"scheme": {
"type": "string"
},
"version": {
"type": "string"
},
"maxAmount": {
"type": "string"
},
"limit": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"offset": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"showManifest": {
"type": "boolean"
},
"debug": {
"type": "boolean"
}
},
"required": [
"query"
],
"additionalProperties": false
}
Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestUrl": {
"type": "string"
},
"total": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"resource": {
"type": "string"
},
"score": {
"type": "number"
},
"snippet": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"manifest": {},
"diagnostics": {}
},
"required": [
"id",
"resource"
],
"additionalProperties": false
}
},
"summary": {
"type": "string"
},
"highlights": {
"type": "array",
"items": {
"type": "string"
}
},
"diagnostics": {}
},
"required": [
"requestUrl",
"total",
"results",
"summary",
"highlights"
],
"additionalProperties": false
}
Invoke with curl
curl -s -X POST \
'http://search.daydreams.systems/entrypoints/service-search/invoke' \
-H 'Content-Type: application/json' \
-d '
{
"input": {
"query": "string",
"url": "https://example.com",
"network": "string",
"asset": "string",
"scheme": "string",
"version": "string",
"maxAmount": "string",
"limit": 0,
"offset": 0,
"showManifest": true,
"debug": true
}
}
'