Merged in feature/openapifixes (pull request #106)

OpenAPI Middleware & Fixes

* updates
This commit is contained in:
Michael McGuinness
2025-03-18 13:06:42 +00:00
parent 555b6d420b
commit 3dd0c718cd
56 changed files with 8577 additions and 122 deletions
+103
View File
@@ -0,0 +1,103 @@
openapi: "3.0.0"
info:
version: 1.0.0
title: TestServer
servers:
- url: http://deepmap.ai
paths:
/resource:
get:
operationId: getResource
parameters:
- name: id
in: query
schema:
type: integer
minimum: 10
maximum: 100
responses:
'200':
description: success
content:
application/json:
schema:
properties:
name:
type: string
id:
type: integer
post:
operationId: createResource
responses:
'204':
description: No content
requestBody:
required: true
content:
application/json:
schema:
properties:
name:
type: string
/protected_resource:
get:
operationId: getProtectedResource
security:
- BearerAuth:
- someScope
responses:
'204':
description: no content
/protected_resource2:
get:
operationId: getProtectedResource
security:
- BearerAuth:
- otherScope
responses:
'204':
description: no content
/protected_resource_401:
get:
operationId: getProtectedResource
security:
- BearerAuth:
- unauthorized
responses:
'401':
description: no content
/multiparamresource:
get:
operationId: getResource
parameters:
- name: id
in: query
required: true
schema:
type: integer
minimum: 10
maximum: 100
- name: id2
required: true
in: query
schema:
type: integer
minimum: 10
maximum: 100
responses:
'200':
description: success
content:
application/json:
schema:
properties:
name:
type: string
id:
type: integer
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT