mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-24 23:59:16 -04:00
135 lines
3.2 KiB
JSON
135 lines
3.2 KiB
JSON
{
|
|
"_format_version": "1.1",
|
|
"services": [
|
|
{
|
|
"protocol": "http",
|
|
"host": "Example",
|
|
"port": 80,
|
|
"path": "/path",
|
|
"name": "Example",
|
|
"plugins": [
|
|
{
|
|
"config": {
|
|
"body_schema": "{}",
|
|
"version": "draft4"
|
|
},
|
|
"enabled": true,
|
|
"name": "request-validator"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"methods": [
|
|
"POST"
|
|
],
|
|
"name": "Example-body-post",
|
|
"paths": [
|
|
"/body$"
|
|
],
|
|
"plugins": [
|
|
{
|
|
"config": {
|
|
"allowed_content_types": [
|
|
"application/json",
|
|
"application/xml"
|
|
],
|
|
"body_schema": "{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}}",
|
|
"version": "draft4"
|
|
},
|
|
"enabled": true,
|
|
"name": "request-validator"
|
|
}
|
|
],
|
|
"strip_path": false,
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
]
|
|
},
|
|
{
|
|
"methods": [
|
|
"GET"
|
|
],
|
|
"name": "Example-global-get",
|
|
"paths": [
|
|
"/global$"
|
|
],
|
|
"plugins": [
|
|
{
|
|
"config": {
|
|
"allowed_content_types": [
|
|
"application/json"
|
|
],
|
|
"body_schema": "{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}}",
|
|
"version": "draft4"
|
|
},
|
|
"enabled": true,
|
|
"name": "request-validator"
|
|
}
|
|
],
|
|
"strip_path": false,
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
]
|
|
},
|
|
{
|
|
"methods": [
|
|
"GET"
|
|
],
|
|
"name": "Example-params-get",
|
|
"paths": [
|
|
"/params$"
|
|
],
|
|
"plugins": [
|
|
{
|
|
"config": {
|
|
"parameter_schema": [
|
|
{
|
|
"explode": false,
|
|
"in": "path",
|
|
"name": "userId",
|
|
"required": true,
|
|
"schema": "{\"type\":\"integer\"}",
|
|
"style": "form"
|
|
}
|
|
],
|
|
"version": "draft4"
|
|
},
|
|
"enabled": true,
|
|
"name": "request-validator"
|
|
}
|
|
],
|
|
"strip_path": false,
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
]
|
|
}
|
|
],
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
]
|
|
}
|
|
],
|
|
"upstreams": [
|
|
{
|
|
"name": "Example",
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
],
|
|
"targets": [
|
|
{
|
|
"target": "backend.com:80",
|
|
"tags": [
|
|
"OAS3_import",
|
|
"OAS3file_request-validator-plugin.yaml"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|