mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 03:52:52 +00:00
75 lines
1.9 KiB
JSON
75 lines
1.9 KiB
JSON
{
|
|
"errorNames": [],
|
|
"instance": {
|
|
"action": "add",
|
|
"plugin": {
|
|
"address": "http://foo.com:1234",
|
|
"name": "Foo Plugin",
|
|
"requestSchema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"SCFooPluginRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
],
|
|
"additionalProperties": false,
|
|
"description": "User query"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
],
|
|
"additionalProperties": false,
|
|
"description": "User query",
|
|
"$id": "https://core.stapps.tu-berlin.de/v0.18.0/lib/schema/SCFooPluginRequest.json"
|
|
},
|
|
"responseSchema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"SCFooPluginResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"result": {
|
|
"type": "array",
|
|
"items": {}
|
|
}
|
|
},
|
|
"required": [
|
|
"result"
|
|
],
|
|
"additionalProperties": false,
|
|
"description": "A response to a query"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"properties": {
|
|
"result": {
|
|
"type": "array",
|
|
"items": {}
|
|
}
|
|
},
|
|
"required": [
|
|
"result"
|
|
],
|
|
"additionalProperties": false,
|
|
"description": "A response to a query",
|
|
"$id": "https://core.stapps.tu-berlin.de/v0.18.0/lib/schema/SCFooPluginResponse.json"
|
|
},
|
|
"route": "/foo"
|
|
}
|
|
},
|
|
"schema": "SCPluginRegisterRequest"
|
|
}
|