Skip to content

Instantly share code, notes, and snippets.

@Trolldemorted
Created January 12, 2024 12:57
Show Gist options
  • Save Trolldemorted/f0b5155f4d1a0d46ea18196d1c2a8574 to your computer and use it in GitHub Desktop.
Save Trolldemorted/f0b5155f4d1a0d46ea18196d1c2a8574 to your computer and use it in GitHub Desktop.
{
"openapi": "3.1.0",
"info": {
"title": "Foobar",
"version": "0.1.0"
},
"paths": {
"/api/changeowner": {
"post": {
"summary": "op1",
"operationId": "op1",
"parameters": [],
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/changename": {
"post": {
"summary": "op2",
"operationId": "op2",
"parameters": [],
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"HTTPValidationError": {
"properties": {
},
"type": "object",
"title": "HTTPValidationError"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment