Files
varsity/test/deep/nested/api/main-api.json
2025-10-01 20:01:42 +00:00

41 lines
865 B
JSON

{
"openapi": "3.0.0",
"info": {
"title": "Deep Nested API with Backwards References",
"version": "1.0.0",
"description": "API in deep nested directory with backwards $ref paths"
},
"paths": {
"/users": {
"get": {
"summary": "Get users",
"responses": {
"200": {
"$ref": "../../../shared/responses/users-response.json"
}
}
}
},
"/products": {
"get": {
"summary": "Get products",
"responses": {
"200": {
"$ref": "../../../shared/responses/products-response.json"
}
}
}
}
},
"components": {
"schemas": {
"User": {
"$ref": "../../../shared/schemas/user-schema.json"
},
"Product": {
"$ref": "../../../shared/schemas/product-schema.json"
}
}
}
}