Skip to content

Instantly share code, notes, and snippets.

@arosien
Created March 10, 2014 17:47
Show Gist options
  • Select an option

  • Save arosien/9470185 to your computer and use it in GitHub Desktop.

Select an option

Save arosien/9470185 to your computer and use it in GitHub Desktop.
{
"basePath": "http://localhost:8080",
"position": 0,
"authorizations": [],
"models": {
"Pattern": {
"properties": [
{
"_2": {
"allowableValues": {},
"required": true,
"position": 0,
"type": {
"format": "int32",
"name": "integer"
}
},
"_1": "id"
},
{
"_2": {
"allowableValues": {},
"required": true,
"position": 1,
"type": {
"name": "string"
}
},
"_1": "name"
},
{
"_2": {
"allowableValues": {},
"required": true,
"position": 2,
"type": {
"name": "string"
}
},
"_1": "scenarioName"
},
{
"_2": {
"allowableValues": {},
"required": true,
"position": 3,
"type": {
"format": "int32",
"name": "integer"
}
},
"_1": "confidence"
},
{
"_2": {
"allowableValues": {},
"required": true,
"position": 4,
"type": {
"format": "int32",
"name": "integer"
}
},
"_1": "severity"
},
{
"_2": {
"allowableValues": {},
"required": true,
"position": 5,
"type": {
"name": "string"
}
},
"_1": "description"
},
{
"_2": {
"allowableValues": {},
"required": false,
"position": 0,
"type": {
"name": "string"
}
},
"_1": "summary"
}
],
"qualifiedName": "com.crowdstrike.csapi.Pattern",
"name": "Pattern",
"id": "Pattern"
}
},
"apiVersion": "1",
"swaggerVersion": "1.0",
"resourcePath": "/patterns",
"description": "read detection pattern metadata",
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"protocols": [
"http"
],
"apis": [
{
"operations": [
{
"authorizations": [],
"protocols": [],
"produces": [],
"consumes": [],
"responseMessages": [],
"method": {},
"responseClass": {
"uniqueItems": false,
"typeArg": {
"qualifiedName": "com.crowdstrike.csapi.Pattern",
"name": "Pattern"
},
"name": "List"
},
"summary": "Get all patterns for a customer",
"position": 0,
"notes": "X-CS-CUSTID request header required",
"deprecated": false,
"nickname": "getPatterns",
"parameters": [
{
"position": 0,
"required": false,
"allowableValues": {},
"paramType": {
"name": "query"
},
"description": "return patterns with given name(s)",
"type": {
"name": "string"
},
"name": "name"
}
]
}
],
"path": "/patterns/v1/patterns"
},
{
"operations": [
{
"authorizations": [],
"protocols": [],
"produces": [],
"consumes": [],
"responseMessages": [],
"method": {},
"responseClass": {
"qualifiedName": "com.crowdstrike.csapi.Pattern",
"name": "Pattern"
},
"summary": "Get pattern by id for a customer",
"position": 0,
"notes": "X-CS-CUSTID request header required",
"deprecated": false,
"nickname": "getPatternById",
"parameters": [
{
"position": 0,
"required": false,
"allowableValues": {},
"paramType": {
"name": "query"
},
"description": "return patterns with given id(s)",
"type": {
"name": "string"
},
"name": "id"
}
]
}
],
"path": "/patterns/v1/patterns/{id}"
}
]
}
@arosien
Copy link
Copy Markdown
Author

arosien commented Mar 10, 2014

scalatra 2.3.0.M1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment