with and without parameters works
This commit is contained in:
42
openapi.yaml
42
openapi.yaml
@ -34,26 +34,6 @@ paths:
|
||||
# responses:
|
||||
# 201:
|
||||
# description: Your items has been inserted
|
||||
/pdb/v2/test1/{id}:
|
||||
get:
|
||||
tags: [ "Regular" ]
|
||||
operationId: Regular.test1byid
|
||||
summary: Returns one entry from table test1 by id
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
description: Here is your test1 item
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/test1"
|
||||
404:
|
||||
description: No such test1 item available
|
||||
/pdb/v2/test1/specificSelectName:
|
||||
get:
|
||||
tags: [ "Regular" ]
|
||||
@ -63,7 +43,7 @@ paths:
|
||||
STATEMENTBEGIN
|
||||
select txt
|
||||
from test1
|
||||
where nr = ?
|
||||
where nr = @nr
|
||||
STATEMENTEND
|
||||
INPUTMAPPINGBEGIN
|
||||
nr = Nummer
|
||||
@ -76,12 +56,12 @@ paths:
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
|
||||
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
|
||||
ipsum dolor sit amet.
|
||||
requestBody:
|
||||
description: specificSelectNameType
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/specificSelectNameType"
|
||||
parameters:
|
||||
- name: nr
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
description: Here are your test1 items
|
||||
@ -108,14 +88,6 @@ components:
|
||||
type: string
|
||||
nr:
|
||||
type: integer
|
||||
specificSelectNameType:
|
||||
description: Specific type to defintion select condition
|
||||
type: object
|
||||
required:
|
||||
- nr
|
||||
properties:
|
||||
nr:
|
||||
type: integer
|
||||
specificResultType:
|
||||
description: Specific result type to defintion select clause
|
||||
type: object
|
||||
|
Reference in New Issue
Block a user