Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"APIC-758/APIC-758.yaml": "OAS 3.0",
"streetlights/streetlights.yaml": "ASYNC 2.0",
"W-11383870/W-11383870.json": { "type": "OAS 3.0", "mime": "application/json" },
"agents-api/agents-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
"agents-api/agents-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"oas32-query/oas32-query.yaml": { "type": "OAS 3.2", "mime": "application/yaml" }
}
55 changes: 55 additions & 0 deletions demo/oas32-query/oas32-query.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
openapi: 3.2.0
info:
title: OAS 3.2 QUERY method
version: 1.0.0
paths:
/pets:
# `query` is a Path Item Object fixed field (sibling to get/post/etc.),
# added in OAS 3.2.0 for the QUERY HTTP method (a safe/idempotent method
# that carries a request body). amf-client-js 5.11 parses it as a real
# operation, which is what the QUERY method-label test drives from.
query:
operationId: queryPets
summary: Search pets using a structured filter body
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
kind:
type: string
maxAge:
type: integer
responses:
"200":
description: Matching pets
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: integer
name:
type: string
get:
operationId: listPets
summary: List pets (contrast operation for the QUERY label test)
responses:
"200":
description: All pets
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: integer
name:
type: string
Loading
Loading