Skip to content

Instantly share code, notes, and snippets.

@jfsiii
Last active July 1, 2019 13:53
Show Gist options
  • Save jfsiii/439272913d583b805c39101ff6990e61 to your computer and use it in GitHub Desktop.
Save jfsiii/439272913d583b805c39101ff6990e61 to your computer and use it in GitHub Desktop.
hapi-swaggered only on plugin routes
{
"swagger": "2.0",
"paths": {
"/api/integrations_manager/list": {
"get": {
"responses": {
"default": {
"description": "",
"schema": {
"$ref": "#/definitions/IntegrationListElement"
}
}
},
"produces": ["application/json"],
"tags": ["api"]
}
},
"/api/integrations_manager/package/{pkgkey}": {
"get": {
"responses": {
"default": {
"description": "",
"schema": {
"$ref": "#/definitions/Package"
}
}
},
"produces": ["application/json"],
"tags": ["api"],
"parameters": [{
"required": true,
"type": "string",
"name": "pkgkey",
"in": "path"
}]
}
}
},
"definitions": {
"IntegrationListElement": {
"required": ["description", "download", "icon", "name", "version"],
"properties": {
"description": {
"type": "string",
"minLength": 0
},
"download": {
"type": "string",
"minLength": 0
},
"icon": {
"type": "string",
"minLength": 0
},
"name": {
"type": "string",
"minLength": 0
},
"version": {
"type": "string",
"minLength": 0
}
}
},
"Version.minVersion.maxModel": {
"required": ["version.min", "version.max"],
"properties": {
"version.min": {
"type": "string",
"minLength": 0
},
"version.max": {
"type": "string",
"minLength": 0
}
}
},
"KibanaModel": {
"required": ["kibana"],
"properties": {
"kibana": {
"$ref": "#/definitions/Version.minVersion.maxModel"
}
}
},
"Package": {
"required": ["name", "version", "description", "icon", "requirement"],
"properties": {
"name": {
"type": "string",
"minLength": 0
},
"version": {
"type": "string",
"minLength": 0
},
"description": {
"type": "string",
"minLength": 0
},
"icon": {
"type": "string",
"minLength": 0
},
"requirement": {
"$ref": "#/definitions/KibanaModel"
}
}
}
},
"tags": [],
"info": {
"title": "API Documentation",
"description": "Description goes here",
"version": "0.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment