Files
bruno/tests/import/openapi/fixtures/openapi-simple.json
Pooja e1b4043ca5 fix: openapi request import (#5586)
* fix: openapi request import
* fix: js sandbox mode selector doesn't show up while opening new collections in playwright tests

---------

Co-authored-by: Bijin Bruno <bijin@usebruno.com>
2025-09-25 13:06:02 +05:30

117 lines
2.8 KiB
JSON

{
"openapi": "3.0.0",
"info": {
"title": "Simple Test API",
"description": "A simple API for basic OpenAPI testing",
"version": "1.0.0"
},
"servers": [
{
"url": "https://httpbin.org",
"description": "HTTPBin test server"
}
],
"paths": {
"/get": {
"get": {
"summary": "HTTP GET test",
"description": "Test HTTP GET request",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"args": {
"type": "object"
},
"headers": {
"type": "object"
},
"origin": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/post": {
"post": {
"summary": "HTTP POST test",
"description": "Test HTTP POST request",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"json": {
"type": "object"
},
"origin": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/status/{code}": {
"get": {
"summary": "Return status code",
"description": "Return a specific HTTP status code",
"parameters": [
{
"name": "code",
"in": "path",
"required": true,
"description": "HTTP status code to return",
"schema": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
],
"responses": {
"default": {
"description": "Returns the specified status code"
}
}
}
}
}
}