| 1 |
{ |
| 2 |
"swagger": "2.0", |
| 3 |
"info": { |
| 4 |
"title": "PartSearch Api", |
| 5 |
"description": "Search for Parts", |
| 6 |
"version": "v3" |
| 7 |
}, |
| 8 |
"host": "api.example.com", |
| 9 |
"paths": { |
| 10 |
"\/Products\/Keyword": { |
| 11 |
"post": { |
| 12 |
"consumes": [ |
| 13 |
"application\/json" |
| 14 |
], |
| 15 |
"produces": [ |
| 16 |
"application\/json" |
| 17 |
], |
| 18 |
"parameters": [ |
| 19 |
{ |
| 20 |
"in": "body", |
| 21 |
"name": "body", |
| 22 |
"description": "KeywordSearchRequest", |
| 23 |
"schema": { |
| 24 |
"$ref" : "#/definitions/KeywordSearchRequest" |
| 25 |
} |
| 26 |
} |
| 27 |
], |
| 28 |
"responses": { |
| 29 |
"200": { |
| 30 |
"description": "Success", |
| 31 |
"schema": { |
| 32 |
"description":"bla", |
| 33 |
"type": "string" |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
}, |
| 40 |
"definitions": { |
| 41 |
"KeywordSearchRequest": { |
| 42 |
"description": "Keyword Search Request object", |
| 43 |
"type": "string" |
| 44 |
}, |
| 45 |
"KeywordSearchResponse": { |
| 46 |
"description": "Response model for a keyword search request.", |
| 47 |
"type": "string" |
| 48 |
} |
| 49 |
} |
| 50 |
} |